Function at 0x403a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4534a4
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x46f020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x398], ebx
push 0x104
lea eax, [ebp - 0x320]
mov dword [ebp - 0x398], ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xc
call fcn.0040c1f0
mov edi, eax
add esp, 4
mov dword [ebp - 0x398], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x403aa4
lea eax, [ebp - 0x320]
mov dword [edi + 4], 0
push eax
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x403dc7
jmp 0x403aa6
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x398], edi
test edi, edi
je 0x403dd1
mov dword [ebp - 4], 1
mov esi, dword [edi + 4]
test esi, esi
jne 0x403ad5
push dword [edi]
call fcn.0040e960
mov esi, eax
mov dword [edi + 4], esi
lea eax, [ebp - 0x391]
mov dword [ebp - 0x33c], 0
push 8
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x39c], eax
call fcn.00402460
lea ecx, [ebp - 0x33c]
mov dword [ebp - 0x3a0], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x33c], eax
mov ecx, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0xf
mov byte [ebp - 0x338], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b52
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x33c]
call fcn.00402230
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x338]
push dword [ebp - 0x398]
cmp dword [ebp - 0x324], 0x10
mov edx, dword [ebp - 0x328]
cmovae ecx, dword [ebp - 0x338]
push 2
push 0x46ba4c
push ecx
call fcn.00404420
add esp, 0x10
lea ecx, [ebp - 0x33c]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x390]
push eax
call fcn.00401eb0
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x391]
mov dword [ebp - 0x358], 0
push 8
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x39c], eax
call fcn.00402460
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x3a0], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x358], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x344], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x340], 0xf
mov byte [ebp - 0x354], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403c50
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x358]
call fcn.00402230
push 1
push 0x46ba50
lea ecx, [ebp - 0x358]
mov byte [ebp - 4], 6
call fcn.00402640
mov esi, eax
mov byte [ebp - 4], 7
push 8
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x35c], 0
call fcn.00402460
add esp, 4
lea ecx, [ebp - 0x374]
mov dword [eax + 4], 0
mov dword [ebp - 0x374], eax
push esi
mov dword [eax], ecx
call fcn.00402340
mov byte [ebp - 4], 8
lea eax, [ebp - 0x38c]
cmp dword [ebp - 0x378], 0x10
lea ecx, [ebp - 0x374]
push dword [ebp - 0x37c]
cmovae eax, dword [ebp - 0x38c]
push eax
call fcn.00402640
mov esi, eax
mov byte [ebp - 4], 9
push 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
call fcn.00402460
add esp, 4
mov ecx, ebx
mov dword [eax + 4], 0
mov dword [ebx], eax
push esi
mov dword [eax], ebx
call fcn.00402340
lea ecx, [ebp - 0x374]
call fcn.00401f90
lea ecx, [ebp - 0x358]
call fcn.00401f90
lea ecx, [ebp - 0x390]
call fcn.00401f90
lea ecx, [ebp - 0x33c]
call fcn.00401f90
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
dec eax
jne 0x403da9
mov eax, dword [edi]
test eax, eax
je 0x403d87
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x403d9e
push eax
call fcn.0040c240
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0040c240
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c1e0
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.0040e810
push 0x8007000e
call fcn.0040e810
int3