Function at 0x4050f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414b3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
push edi
mov dword [ebp - 0x1c0], ecx
mov dword [ebp - 0x164], 0
push 0x416349
lea ecx, [ebp - 0x144]
call fcn.004020c0
mov dword [ebp - 4], 1
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x11c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, byte [0x416543]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
call fcn.0040b8d1
add esp, 4
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.0040cff0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
push str.J_____a_t
mov eax, dword [ebp - 0x120]
push eax
call fcn.0040ccb0
add esp, 0xc
push 0x4166ac
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call fcn.00408400
add esp, 0xc
mov eax, dword [ebp - 0x120]
push eax
call fcn.0040cc20
add esp, 4
push eax
mov ecx, dword [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x144]
call fcn.00401fd0
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x158]
push eax
call fcn.0040ca99
add esp, 4
cmp dword [ebp - 0x12c], 0x10
jb 0x40522a
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x1c4], ecx
jmp 0x405236
lea edx, [ebp - 0x140]
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp - 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x405397
movzx ecx, byte [0x41665c]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], 0
mov edx, dword [ebp - 0x150]
add edx, 1
push edx
call fcn.0040b8d1
add esp, 4
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x150]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x14c]
push edx
call fcn.0040cff0
add esp, 0xc
mov eax, dword [ebp - 0x150]
push eax
push 0x41664c
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0040ccb0
add esp, 0xc
push 0x4166ac
mov edx, dword [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00408400
add esp, 0xc
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0040cc20
add esp, 4
push eax
mov edx, dword [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x144]
call fcn.00401fd0
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.0040ca99
add esp, 4
cmp dword [ebp - 0x12c], 0x10
jb 0x405336
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x1c8], edx
jmp 0x405342
lea eax, [ebp - 0x140]
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x1c8]
push ecx
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x40538a
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [ebp - 0x148]
test eax, eax
jl 0x40538a
mov dword [ebp - 0x128], 1
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x128], 0
jne 0x4053b2
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00401af0
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0040cc20
add esp, 4
push eax
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401fd0
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x144]
call fcn.00401af0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 8