Function at 0x4053a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414dca
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 0x416369
lea ecx, [ebp - 0x144]
call fcn.00402170
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 [0x41656b]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
call fcn.0040bb61
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.0040d280
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
push 0x416560
mov eax, dword [ebp - 0x120]
push eax
call fcn.0040cf40
add esp, 0xc
push 0x4166d4
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call fcn.004086b0
add esp, 0xc
mov eax, dword [ebp - 0x120]
push eax
call fcn.0040ceb0
add esp, 4
push eax
mov ecx, dword [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x144]
call fcn.00402080
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x158]
push eax
call fcn.0040cd29
add esp, 4
cmp dword [ebp - 0x12c], 0x10
jb 0x4054da
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x1c4], ecx
jmp 0x4054e6
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 0x405647
movzx ecx, byte [0x416684]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], 0
mov edx, dword [ebp - 0x150]
add edx, 1
push edx
call fcn.0040bb61
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.0040d280
add esp, 0xc
mov eax, dword [ebp - 0x150]
push eax
push 0x416674
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0040cf40
add esp, 0xc
push 0x4166d4
mov edx, dword [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call fcn.004086b0
add esp, 0xc
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0040ceb0
add esp, 4
push eax
mov edx, dword [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x144]
call fcn.00402080
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.0040cd29
add esp, 4
cmp dword [ebp - 0x12c], 0x10
jb 0x4055e6
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x1c8], edx
jmp 0x4055f2
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 0x40563a
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 0x40563a
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 0x405662
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.00401ba0
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0040ceb0
add esp, 4
push eax
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402080
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.00401ba0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 8