Function at 0x46ddf8
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 0x46e080
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x7020cc], 0
jne 0x46de49
push 0x46e090
push 0x46e0c4
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a5cc
mov dword [0x7020cc], eax
cmp dword [0x7020d0], 0
jne 0x46de6c
push 0x46e0d8
push 0x46e104
call sub.kernel32.dll_LoadLibraryW
push eax
call fcn.0040a5cc
mov dword [0x7020d0], eax
cmp dword [0x7020d4], 0
jne 0x46de8f
push 0x46e118
push 0x46e138
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a5cc
mov dword [0x7020d4], eax
xor eax, eax
mov dword [ebx], eax
push ebx
push 0
push 0
push 5
call dword [0x7020cc]
xor esi, esi
cmp dword [ebx], 0
jne 0x46dee1
mov dword [ebx], 0x10000
mov eax, dword [ebx]
add eax, eax
mov dword [ebx], eax
push esi
call sub.kernel32.dll_LocalFree
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 [0x7020cc]
test eax, eax
je 0x46df01
cmp dword [ebx], 0x400000
jne 0x46dead
jmp 0x46df01
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 [0x7020cc]
test eax, eax
jne 0x46e054
mov ebx, esi
cmp word [ebx + 0x38], 0
jbe 0x46e032
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x3c]
call fcn.00406f3c
cmp dword [0x7020d0], 0
je 0x46e01d
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 0x46e01d
push 0x104
lea eax, [ebp - 0x216]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [0x7020d0]
test eax, eax
jbe 0x46e014
lea eax, [ebp - 4]
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.00406f90
mov edi, dword [0x72242c]
mov edi, dword [edi]
mov edx, dword [ebp - 4]
mov eax, 0x46e15c
call edi
test al, al
je 0x46dfec
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.0040753c
mov eax, dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.00406f90
mov edx, dword [ebp - 0x220]
lea eax, [ebp - 4]
pop ecx
call fcn.00407264
jmp 0x46e014
mov edi, dword [0x7217fc]
mov edi, dword [edi]
mov edx, dword [ebp - 4]
mov eax, 0x46e194
call edi
test al, al
je 0x46e014
lea eax, [ebp - 4]
mov ecx, 4
mov edx, 1
call fcn.0040760c
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.0046da50
pop ecx
jmp 0x46e047
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x44]
mov eax, 0x46e1ac
call fcn.0046da50
pop ecx
mov edi, dword [ebx]
test edi, edi
je 0x46e054
add ebx, edi
jmp 0x46df0b
push esi
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e087
lea eax, [ebp - 0x220]
mov edx, 2
call fcn.00406d78
lea eax, [ebp - 4]
call fcn.00406d70
ret