Function at 0x405340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414d6a
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 0x416361
lea ecx, [ebp - 0x144]
call fcn.00402160
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 [0x416553]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
call fcn.0040bb01
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.0040d220
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
push 0x416548
mov eax, dword [ebp - 0x120]
push eax
call fcn.0040cee0
add esp, 0xc
push 0x4166bc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call fcn.00408650
add esp, 0xc
mov eax, dword [ebp - 0x120]
push eax
call fcn.0040ce50
add esp, 4
push eax
mov ecx, dword [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x144]
call fcn.00402070
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x158]
push eax
call fcn.0040ccc9
add esp, 4
cmp dword [ebp - 0x12c], 0x10
jb 0x40547a
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x1c4], ecx
jmp 0x405486
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 0x4055e7
movzx ecx, byte [0x41666c]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], 0
mov edx, dword [ebp - 0x150]
add edx, 1
push edx
call fcn.0040bb01
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.0040d220
add esp, 0xc
mov eax, dword [ebp - 0x150]
push eax
push 0x41665c
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0040cee0
add esp, 0xc
push 0x4166bc
mov edx, dword [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00408650
add esp, 0xc
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0040ce50
add esp, 4
push eax
mov edx, dword [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x144]
call fcn.00402070
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.0040ccc9
add esp, 4
cmp dword [ebp - 0x12c], 0x10
jb 0x405586
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x1c8], edx
jmp 0x405592
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 0x4055da
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 0x4055da
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 0x405602
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.00401b90
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0040ce50
add esp, 4
push eax
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402070
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.00401b90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 8