Function at 0x4655a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], eax
lea ebx, [ebp - 8]
xor eax, eax
push ebp
push 0x465825
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b8f98], 0
jne 0x4655f9
push 0x465834
push 0x465868
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040ba0c
mov dword [0x4b8f98], eax
cmp dword [0x4b8f9c], 0
jne 0x46561c
push 0x46587c
push 0x4658a8
call sub.kernel32.dll_LoadLibraryW
push eax
call fcn.0040ba0c
mov dword [0x4b8f9c], eax
cmp dword [0x4b8fa0], 0
jne 0x46563f
push 0x4658bc
push 0x4658dc
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040ba0c
mov dword [0x4b8fa0], eax
xor eax, eax
mov dword [ebx], eax
push ebx
push 0
push 0
push 5
call dword [0x4b8f98]
xor esi, esi
cmp dword [ebx], 0
jne 0x465691
mov dword [ebx], 0x10000
mov eax, dword [ebx]
add eax, eax
mov dword [ebx], eax
push esi
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebx]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov esi, eax
push 0
mov eax, dword [ebx]
push eax
push esi
push 5
call dword [0x4b8f98]
test eax, eax
je 0x4656b1
cmp dword [ebx], 0x400000
jne 0x46565d
jmp 0x4656b1
mov eax, dword [ebx]
add eax, eax
mov dword [ebx], eax
mov eax, dword [ebx]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov esi, eax
push 0
mov eax, dword [ebx]
push eax
push esi
push 5
call dword [0x4b8f98]
test eax, eax
jne 0x4657f9
mov ebx, esi
cmp dword [ebx + 0x3c], 0
je 0x4657d7
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x3c]
call fcn.00407a94
cmp dword [0x4b8f9c], 0
je 0x4657c2
mov eax, dword [ebx + 0x44]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4657c2
push 0x104
lea eax, [ebp - 0x216]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4b8f9c]
test eax, eax
jbe 0x4657b9
lea eax, [ebp - 4]
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.00407ae8
mov edx, dword [ebp - 4]
mov eax, 0x465900
call fcn.0040ea6c
test al, al
je 0x465796
push 0x104
lea eax, [ebp - 0x216]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
lea eax, [ebp - 0x21c]
push eax
mov ecx, 0x7fffffff
mov edx, 0x15
mov eax, dword [ebp - 4]
call fcn.00407dfc
mov eax, dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.00407ae8
mov edx, dword [ebp - 0x220]
lea eax, [ebp - 4]
pop ecx
call fcn.00407c8c
jmp 0x4657b9
mov edx, dword [ebp - 4]
mov eax, 0x465938
call fcn.0040e990
test al, al
je 0x4657b9
lea eax, [ebp - 4]
mov ecx, 4
mov edx, 1
call fcn.00407e44
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x44]
mov eax, dword [ebp - 4]
call fcn.00465208
pop ecx
jmp 0x4657ec
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x44]
mov eax, 0x465950
call fcn.00465208
pop ecx
mov edi, dword [ebx]
test edi, edi
je 0x4657f9
add ebx, edi
jmp 0x4656bb
push esi
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46582c
lea eax, [ebp - 0x220]
mov edx, 2
call fcn.00406e24
lea eax, [ebp - 4]
call fcn.00406dc4
ret