Function at 0x4657f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404918
xor eax, eax
push ebp
push 0x465ac6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x468164]
mov eax, dword [eax]
call fcn.00408500
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045adb8
push 0x104
lea eax, [ebp - 0x119]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, dword [0x468400]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.004046d8
lea eax, [ebp - 0x120]
push eax
mov eax, dword [0x468400]
mov eax, dword [eax]
mov ecx, 1
mov edx, 1
call fcn.00404988
push dword [ebp - 0x120]
push 0x465adc
push 0x465ae8
push 0x465af8
mov eax, dword [0x468400]
mov edx, 4
call fcn.004047e8
mov eax, dword [0x468400]
mov eax, dword [eax]
call fcn.00402c88
call fcn.00402c4c
mov edx, dword [0x468400]
mov edx, dword [edx]
lea eax, [ebp - 0x124]
mov ecx, 0x465b04
call fcn.00404774
mov eax, dword [ebp - 0x124]
call fcn.00408d30
test al, al
jne 0x465941
push 0x465b18
mov eax, dword [0x468400]
push dword [eax]
push 0x465b04
lea eax, [ebp - 0x128]
mov edx, 3
call fcn.004047e8
mov eax, dword [ebp - 0x128]
call fcn.00430f58
jmp 0x465a8d
mov edx, dword [0x468400]
mov edx, dword [edx]
lea eax, [ebp - 0x12c]
mov ecx, 0x465b04
call fcn.00404774
mov eax, dword [ebp - 0x12c]
call fcn.00404928
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x20
jae 0x4659a4
push 0x465b68
mov eax, dword [0x468400]
push dword [eax]
push 0x465b04
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.004047e8
mov eax, dword [ebp - 0x130]
call fcn.00430f58
jmp 0x465a8d
push 0x465b84
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
test esi, esi
jne 0x4659f2
push 0x465b98
mov eax, dword [0x468400]
push dword [eax]
push 0x465b04
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.004047e8
mov eax, dword [ebp - 0x134]
call fcn.00430f58
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeLibrary_1
jmp 0x465a8d
xor eax, eax
push ebp
push 0x465a47
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
call fcn.00452f08
push eax
mov eax, ebx
call fcn.00452f08
push eax
call esi
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x465a30
mov eax, dword [0x468184]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [0x468184]
mov eax, dword [eax]
mov dword [ebx + 0x304], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x465a8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465acd
lea eax, [ebp - 0x138]
mov edx, 7
call fcn.0040448c
lea eax, [ebp - 0x10]
mov edx, dword [0x45acf0]
call fcn.00405830
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040448c
ret