Function at 0x46b51c
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 0x46b7a4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x525084], 0
jne 0x46b56d
push 0x46b7b4
push 0x46b7e8
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00409134
mov dword [0x525084], eax
cmp dword [0x525088], 0
jne 0x46b590
push 0x46b7fc
push 0x46b828
call sub.kernel32.dll_LoadLibraryW
push eax
call fcn.00409134
mov dword [0x525088], eax
cmp dword [0x52508c], 0
jne 0x46b5b3
push 0x46b83c
push 0x46b85c
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00409134
mov dword [0x52508c], eax
xor eax, eax
mov dword [ebx], eax
push ebx
push 0
push 0
push 5
call dword [0x525084]
xor esi, esi
cmp dword [ebx], 0
jne 0x46b605
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_1
mov esi, eax
push 0
mov eax, dword [ebx]
push eax
push esi
push 5
call dword [0x525084]
test eax, eax
je 0x46b625
cmp dword [ebx], 0x400000
jne 0x46b5d1
jmp 0x46b625
mov eax, dword [ebx]
add eax, eax
mov dword [ebx], eax
mov eax, dword [ebx]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
push 0
mov eax, dword [ebx]
push eax
push esi
push 5
call dword [0x525084]
test eax, eax
jne 0x46b778
mov ebx, esi
cmp word [ebx + 0x38], 0
jbe 0x46b756
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x3c]
call fcn.0040636c
cmp dword [0x525088], 0
je 0x46b741
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 0x46b741
push 0x104
lea eax, [ebp - 0x216]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [0x525088]
test eax, eax
jbe 0x46b738
lea eax, [ebp - 4]
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.004063c0
mov edi, dword [0x52a440]
mov edi, dword [edi]
mov edx, dword [ebp - 4]
mov eax, 0x46b880
call edi
test al, al
je 0x46b710
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.00406814
mov eax, dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.004063c0
mov edx, dword [ebp - 0x220]
lea eax, [ebp - 4]
pop ecx
call fcn.00406594
jmp 0x46b738
mov edi, dword [0x529a74]
mov edi, dword [edi]
mov edx, dword [ebp - 4]
mov eax, 0x46b8b8
call edi
test al, al
je 0x46b738
lea eax, [ebp - 4]
mov ecx, 4
mov edx, 1
call fcn.004068e4
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.0046b174
pop ecx
jmp 0x46b76b
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x44]
mov eax, 0x46b8d0
call fcn.0046b174
pop ecx
mov edi, dword [ebx]
test edi, edi
je 0x46b778
add ebx, edi
jmp 0x46b62f
push esi
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b7ab
lea eax, [ebp - 0x220]
mov edx, 2
call fcn.004061b8
lea eax, [ebp - 4]
call fcn.004061b0
ret