Function at 0x1007e0c1
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x338
mov edi, dword [esp + 0x34c]
mov ecx, dword [esp + 0x350]
lea ebp, [esp + 0x9c]
lea esi, [esp + 0x90]
lea eax, [esp + 0x11c]
mov dword [ebp - 0xc], ebp
mov dword [ebp - 8], ebp
mov dword [ebp - 4], eax
push esi
call fcn.1008307a
lea eax, [esp + 0x120]
mov word [eax + 8], 0x106
mov dword [eax], esi
push eax
call fcn.1007dc5a
add esp, 4
xor ebx, ebx
test al, al
jne 0x1007e12f
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x1007e1e0
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
lea edx, [ecx + ebx]
sub ecx, eax
sub edx, eax
cmp edx, 0xf7
jbe 0x1007e1c9
cmp ecx, 4
jb 0x1007e159
cmp dword [eax], 0x5c3f5c5c
je 0x1007e1c9
lea ecx, [esp + 0x12c]
lea eax, [esp + 0x334]
mov dword [ecx - 0xc], ecx
mov dword [ecx - 8], ecx
mov dword [ecx - 4], eax
lea ecx, [esp + 0x120]
push 0x101da7fd
push 0x101da7f9
call fcn.1007a5b2
test ebx, ebx
je 0x1007e219
lea esi, [esp + 0xc]
lea eax, [esp + 0x5c]
mov dword [esi - 0xc], esi
mov dword [esi - 8], esi
mov dword [eax - 0x54], eax
mov eax, esp
push eax
push edi
call fcn.1007e36b
add esp, 8
cmp dword [edi], 0
je 0x1007e1f5
mov eax, dword [esp]
cmp eax, esi
je 0x1007e32f
push eax
call fcn.101aff0e
add esp, 4
jmp 0x1007e32f
push dword [esp + 0x354]
push ecx
push eax
push edi
call fcn.1007e433
add esp, 0x10
jmp 0x1007e34a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.1007c160
add esp, 8
jmp 0x1007e34a
lea ecx, [esp + 0x120]
push dword [esp + 4]
push dword [esp + 4]
call fcn.1007a5b2
mov eax, dword [esp]
cmp eax, esi
je 0x1007e219
push eax
call fcn.101aff0e
add esp, 4
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov edx, esp
sub ecx, eax
push ecx
push eax
push edx
call fcn.1007d410
add esp, 0xc
mov esi, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
lea edi, [esp + 8]
sub ebp, esi
cmp dword [edi - 8], esi
jne 0x1007e285
cmp dword [esp + 0x10], ebp
je 0x1007e2ff
jmp 0x1007e285
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x124]
sub edx, ecx
call fcn.1007db7f
cmp eax, 0xffffffff
je 0x1007e2eb
add eax, dword [esp + 0x120]
mov dword [esp + 0x124], eax
jmp 0x1007e2eb
mov eax, dword [esp + 0xc]
cmp eax, 2
je 0x1007e29e
cmp eax, 1
jne 0x1007e2ac
mov eax, dword [esp + 8]
cmp byte [eax], 0x2e
jne 0x1007e2ac
jmp 0x1007e2eb
mov eax, dword [esp + 8]
movzx eax, word [eax]
cmp eax, 0x2e2e
je 0x1007e25b
lea ecx, [esp + 0x84]
mov ax, 0x101
lea edx, [esp + 0x78]
lea ebx, [esp + 0x6c]
mov word [ecx + 8], ax
mov word [edx + 8], ax
mov word [ebx + 8], ax
lea eax, [esp + 0x60]
mov word [eax + 8], 0x105
mov dword [eax], edi
push ecx
push edx
push ebx
push eax
lea eax, [esp + 0x130]
push eax
call fcn.1007d8c8
add esp, 0x14
mov ebx, esp
mov ecx, ebx
call fcn.1007d4f2
mov eax, dword [ebx + 0x10]
cmp dword [ebx], esi
jne 0x1007e285
cmp eax, ebp
jne 0x1007e285
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
sub ecx, eax
push dword [esp + 0x354]
push ecx
push eax
mov edi, dword [esp + 0x358]
push edi
call fcn.1007e433
add esp, 0x10
lea ebp, [esp + 0x9c]
mov eax, dword [esp + 0x120]
lea ecx, [esp + 0x12c]
cmp eax, ecx
je 0x1007e34a
push eax
call fcn.101aff0e
add esp, 4
mov eax, dword [esp + 0x90]
cmp eax, ebp
je 0x1007e35e
push eax
call fcn.101aff0e
add esp, 4
mov eax, edi
add esp, 0x338
pop esi
pop edi
pop ebx
pop ebp
ret