Function at 0x46cff8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46d2be
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, 0x43
call fcn.0046cf5c
test al, al
je 0x46d037
mov byte [0x4b9880], 2
jmp 0x46d066
mov al, 0x41
call fcn.0046cf5c
test al, al
je 0x46d04b
mov byte [0x4b9880], 0
jmp 0x46d066
mov al, 0x50
call fcn.0046cf5c
test al, al
je 0x46d05f
mov byte [0x4b9880], 1
jmp 0x46d066
mov byte [0x4b9880], 3
mov al, byte [0x4b9880]
mov byte [ebp - 1], al
cmp byte [0x4b9880], 0
jne 0x46d142
mov eax, dword [0x4b61a4]
cmp dword [eax], 1
jne 0x46d142
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00404bf0
push 0x104
mov eax, dword [ebp - 8]
call fcn.00404a64
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 8]
xchg edx, eax
call fcn.00404bf0
mov eax, dword [ebp - 8]
call fcn.00404864
test eax, eax
jle 0x46d0dd
mov eax, dword [ebp - 8]
call fcn.00404864
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x46d0dd
lea eax, [ebp - 8]
mov edx, 0x46d2dc
call fcn.0040486c
lea eax, [ebp - 0x28]
mov ecx, 0x46d2e8
mov edx, dword [ebp - 8]
call fcn.004048b0
mov eax, dword [ebp - 0x28]
call fcn.00404a64
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x46d29b
push 0x46d2f0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
test esi, esi
je 0x46d137
push 0
push 0
lea edx, [ebp - 0x2c]
mov eax, 2
call fcn.00402e34
mov eax, dword [ebp - 0x2c]
call fcn.00408b90
push eax
push 0x46d304
call esi
push ebx
call sub.kernel32.dll_FreeLibrary_1
jmp 0x46d29b
cmp byte [0x4b9880], 2
jne 0x46d162
cmp dword [ebp + 0xc], 0
je 0x46d29b
call sub.user32.dll_GetForegroundWindow
call dword [ebp + 0xc]
jmp 0x46d29b
mov dword [0x4b9890], esi
mov dword [0x4b988c], ebx
mov dword [0x4b9894], edi
mov eax, dword [ebp + 8]
mov dword [0x4b989c], eax
call fcn.0046cca0
xor eax, eax
push ebp
push 0x46d291
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4b9880], 1
jne 0x46d1b1
lea edx, [ebp - 0x30]
mov eax, 2
call fcn.00402e34
mov eax, dword [ebp - 0x30]
call fcn.00408b90
mov ebx, eax
jmp 0x46d1b3
xor ebx, ebx
mov eax, ebx
call fcn.0046cdac
mov ebx, eax
test ebx, ebx
je 0x46d1fd
mov eax, ebx
call fcn.0046c964
cmp byte [0x4b9880], 1
je 0x46d1ea
push ebx
call sub.user32.dll_SetForegroundWindow
jmp 0x46d1ea
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x46d1d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d29b
call fcn.0046cc6c
mov eax, dword [0x4b5c4c]
mov eax, dword [eax]
push eax
mov ecx, dword [0x4b5e4c]
mov ecx, dword [ecx]
mov edx, dword [0x4b5e04]
mov edx, dword [edx]
mov eax, dword [0x4b5d84]
mov eax, dword [eax]
call fcn.0046bdf8
test al, al
jne 0x46d290
cmp byte [0x4b9880], 3
jne 0x46d290
call fcn.0040a5d0
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [0x4b5c24]
push dword [eax + 4]
push dword [eax]
call fcn.0046abd8
cmp eax, 5
jl 0x46d290
mov eax, dword [0x4b5fb4]
mov eax, dword [eax]
call fcn.00469564
mov ecx, dword [0x4b5bdc]
mov eax, dword [0x4b5fb4]
mov eax, dword [eax]
mov edx, dword [0x46c2e4]
call fcn.0046957c
mov eax, dword [0x4b5fb4]
mov eax, dword [eax]
call fcn.004695fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d2c5
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004045c8
lea eax, [ebp - 8]
call fcn.004045a4
ret