Function at 0x46bcd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x734
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4ea0c8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x72c], eax
je 0x46bf9f
cmp dword [0x4ea0b4], 0
je 0x46bf9f
cmp dword [0x4ea0d4], 0
je 0x46bf9f
cmp dword [0x4ea0c0], 0
je 0x46bf9f
push esi
push edi
push 0x3e8
mov dword [ebp - 0x724], 0x3e8
call fcn.0048fb2f
add esp, 4
mov edi, eax
lea eax, [ebp - 0x724]
push eax
push 0x3e8
push edi
push 0xb
call dword [0x4ea038]
test eax, eax
je 0x46bd96
jmp 0x46bd60
add dword [ebp - 0x724], 0x3e8
push edi
call fcn.0048faf7
mov esi, dword [ebp - 0x724]
push esi
call fcn.0048fb2f
add esp, 8
mov edi, eax
lea eax, [ebp - 0x724]
push eax
push esi
push edi
push 0xb
call dword [0x4ea038]
test eax, eax
jne 0x46bd60
call fcn.00450b80
test al, al
lea eax, [ebp - 0x310]
je 0x46bdac
push 0x4c31f4
jmp 0x46bdb1
push 0x4c3210
push 0x104
push eax
call fcn.004911bd
add esp, 0xc
xor esi, esi
push ebx
cmp dword [edi], esi
jbe 0x46be36
lea ebx, [edi + 0x20]
lea esp, [esp]
push ebx
lea ecx, [ebp - 0x730]
call fcn.004653d0
lea ecx, [ebp - 0x310]
push ecx
push dword [eax]
call fcn.004913b3
mov dword [ebp - 0x728], eax
add esp, 8
mov eax, dword [ebp - 0x730]
or edx, 0xffffffff
add eax, 0xfffffff0
mov dword [ebp - 0x734], eax
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46be1e
mov ecx, dword [eax]
push dword [ebp - 0x734]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x728], 0
jne 0x46bede
inc esi
add ebx, 0x11c
cmp esi, dword [edi]
jb 0x46bdd0
mov ebx, dword [ebp - 0x728]
push edi
call fcn.0048faf7
add esp, 4
lea eax, [ebp - 0x720]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x518]
push 0x4b4984
push eax
call fcn.00426350
add esp, 0x10
lea eax, [ebp - 0x518]
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x4e56a8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0
push 0
call esi
push eax
call dword [0x4ea0b4]
test eax, eax
jne 0x46beed
push 0x4e56a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
imul eax, esi, 0x11c
mov ebx, dword [eax + edi + 0xc]
jmp 0x46be3c
push 0
mov eax, ebx
cdq
push edx
push eax
push 0
lea eax, [ebp - 0x310]
push eax
push edi
call esi
push eax
call dword [0x4ea0d4]
or eax, edx
jne 0x46bf39
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push eax
call dword [0x4ea0c8]
push 0x4e56a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x18
push eax
push dword [ebp - 0x72c]
mov dword [ebp - 0xf8], 0xed
call esi
push eax
call dword [0x4ea0c0]
neg eax
push edi
sbb eax, eax
and dword [ebp - 0x104], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push eax
call dword [0x4ea0c8]
push 0x4e56a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x104]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret