Function at 0x4032a0
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x584
push ebx
push ebp
push esi
push edi
push 0x12c
call fcn.00401870
add esp, 4
call fcn.00404a50
mov eax, dword [esp + 0x598]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea esi, [eax*4 + 0x40c598]
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x4036fd
cmp byte [esi], 0
je 0x4036fd
push 0x3b
push esi
call fcn.00404ec0
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x403321
mov edi, ebp
lea edx, [esp + 0x34]
sub edi, esi
lea ecx, [edi + 1]
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
mov byte [esp + edi + 0x34], 0
lea esi, [ebp + 1]
jmp 0x40332f
lea eax, [esp + 0x34]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
xor esi, esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x3c]
push 0x40bd88
push eax
call fcn.00402c50
add esp, 0x10
cmp eax, ebx
jne 0x40335b
cmp esi, ebx
jne 0x4032e9
cmp eax, ebx
je 0x4036fd
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4036fd
mov ecx, dword [esp + 0x14]
cmp ecx, 0x100
jl 0x4036fd
cmp byte [eax], 0x4d
jne 0x403386
cmp byte [eax + 1], 0x5a
je 0x403412
mov ebx, dword [eax + 0x6f]
add ecx, 0xfffffff8
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, dword [esp + 0x10]
mov ebp, eax
mov ecx, 0x1b
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add ecx, 0xffffff89
lea edi, [ebp + 0x6f]
mov eax, ecx
lea esi, [edx + 0x77]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
sub eax, 8
push eax
mov dword [esp + 0x20], eax
call fcn.00403260
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.DLL_GlobalFree]
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov edi, eax
mov eax, ecx
mov esi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
jmp 0x403418
mov ebx, dword [sym.imp.KERNEL32.DLL_GlobalFree]
lea ecx, [esp + 0x494]
push 0x100
push ecx
call fcn.00403fd0
lea edx, [esp + 0x39c]
push 0x100
push edx
call fcn.00404000
lea eax, [esp + 0x2a4]
push 0x80
push eax
call fcn.00404030
lea ecx, [esp + 0x32c]
push 0x80
push ecx
call fcn.00404060
mov edx, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
add esp, 0x20
lea eax, [esp + 0x314]
lea esi, [edx + 0x40]
push eax
push esi
call edi
test eax, eax
jne 0x403499
mov eax, dword [0x40c934]
test eax, eax
je 0x4034f5
lea ecx, [esp + 0x94]
push 0xff
push ecx
call eax
jmp 0x4034f5
lea edx, [esp + 0x294]
push edx
push esi
call edi
test eax, eax
jne 0x4034c2
mov eax, dword [0x40c924]
test eax, eax
je 0x4034f5
lea ecx, [esp + 0x94]
push 0xff
push ecx
call eax
jmp 0x4034f5
lea edx, [esp + 0x394]
push edx
push esi
call edi
test eax, eax
jne 0x4034e6
lea eax, [esp + 0x94]
push eax
push 0xff
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
jmp 0x4034f5
lea ecx, [esp + 0x94]
push esi
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov cl, byte [esp + eax + 0x93]
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
cmp cl, 0x5c
je 0x403524
lea eax, [esp + 0x94]
push 0x4092ec
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 0x60]
lea esi, [ecx + 0x60]
test al, al
je 0x40356b
lea edx, [esp + 0x494]
push edx
push esi
call edi
test eax, eax
je 0x40356b
lea eax, [esp + 0x94]
push esi
push eax
call ebp
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x98]
push edx
push eax
call fcn.00404ba0
add esp, 0xc
jmp 0x40364f
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.00403ee0
lea edx, [esp + 0x3c]
push 0x10
push edx
call fcn.00403f10
lea eax, [esp + 0x84]
push 0x10
push eax
call fcn.00403eb0
lea ecx, [esp + 0x9c]
push 0x10
push ecx
call fcn.00403f40
mov dl, byte [0x40bd88]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1b5]
mov byte [esp + 0x1b4], dl
add esp, 0x20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x124]
test ecx, ecx
jne 0x4035f6
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x194]
push ecx
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0xa0]
push ecx
push edx
jmp 0x403615
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x194]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0xa0]
push eax
push ecx
call fcn.00402f50
lea edx, [esp + 0x194]
lea eax, [esp + 0x94]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x9c]
push eax
push ecx
call fcn.00404c70
add esp, 0x10
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call ebx
test esi, esi
jne 0x403669
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x584
ret
push 0x3e8
call fcn.00401870
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [eax + 0x124]
test ecx, ecx
jne 0x4036b3
lea ecx, [esp + 0x94]
push 0x40bd88
push ecx
call fcn.00402390
add esp, 8
push 0x3e8
call fcn.00401870
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x584
ret
lea edx, [esp + 0x34]
push 0x20
push edx
call fcn.00404180
add esp, 8
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
lea ecx, [esp + 0x94]
push ecx
call fcn.00402370
add esp, 4
push 0x3e8
call fcn.00401870
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x584
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x584
ret