Function at 0x4ca4d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4f8571
mov eax, dword fs:[0]
push eax
mov eax, 0x3054
call fcn.004df840
mov eax, dword [0x50fb70]
xor eax, esp
mov dword [esp + 0x3050], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50fb70]
xor eax, esp
push eax
lea eax, [esp + 0x3068]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0x3078]
mov ebx, dword [esp + 0x307c]
mov ecx, ebx
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ca54e
test dx, dx
je 0x4ca547
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ca54e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ca525
xor eax, eax
or esi, 0xffffffff
jmp 0x4ca557
sbb eax, eax
mov esi, 0xffffffff
sbb eax, esi
test eax, eax
je 0x4ca7c1
lea eax, [esp + 0x2064]
push eax
push 0x800
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx ecx, word [esp + 0x2064]
push ecx
call fcn.004e3f01
add esp, 4
cmp word [esp + 0x2064], 0x5c
mov edi, eax
je 0x4ca5de
movzx eax, word [ebx]
cmp ax, 0x5c
je 0x4ca5de
cmp word [ebp], 0x5c
je 0x4ca5de
movzx edx, ax
push edx
call fcn.004e3f01
mov esi, eax
movzx eax, word [ebp]
push eax
call fcn.004e3f01
mov ecx, 0x3a
add esp, 8
cmp word [ebx + 2], cx
je 0x4ca5ca
mov esi, edi
cmp word [ebp + 2], cx
je 0x4ca5d2
mov eax, edi
cmp esi, eax
je 0x4ca5db
mov byte [esp + 0x17], 1
or esi, 0xffffffff
push ebp
call fcn.00443510
test al, al
je 0x4ca63f
lea ecx, [esp + 0x1c]
call fcn.00441f10
mov dword [esp + 0x3070], 0
push 1
push ebp
lea ecx, [esp + 0x24]
call fcn.00441f90
test al, al
je 0x4ca6f2
lea ecx, [esp + 0x1c]
call fcn.00442240
test al, al
je 0x4ca6f2
push ebp
call fcn.00443160
test al, al
je 0x4ca6f2
mov dword [esp + 0x3070], esi
lea ecx, [esp + 0x1c]
call fcn.00442640
cmp byte [esp + 0x17], 0
jne 0x4ca65a
push ebp
push ebx
call fcn.004430c0
test al, al
sete al
test al, al
je 0x4ca7c1
lea ecx, [esp + 0x1c]
call fcn.00441f10
mov dword [esp + 0x3070], 1
lea ecx, [esp + 0x1040]
call fcn.00441f10
mov byte [esp + 0x3070], 2
push 0
push ebx
lea ecx, [esp + 0x24]
call fcn.00441f90
test al, al
jne 0x4ca6cb
push ebx
mov ecx, 0x5275b8
call fcn.0043dba0
mov byte [esp + 0x3070], 1
lea ecx, [esp + 0x1040]
call fcn.00442640
mov dword [esp + 0x3070], esi
lea ecx, [esp + 0x1c]
call fcn.00442640
mov eax, 0xa
jmp 0x4ca7c3
push 0xa
push ebp
lea ecx, [esp + 0x1048]
call fcn.00442120
test al, al
jne 0x4ca70c
mov byte [esp + 0x3070], 1
lea ecx, [esp + 0x1040]
call fcn.00442640
mov dword [esp + 0x3070], esi
lea ecx, [esp + 0x1c]
call fcn.00442640
mov eax, 0xf
jmp 0x4ca7c3
push 0
mov ecx, 0x5275b8
call fcn.0043d590
push esi
push esi
lea ecx, [esp + 0x1048]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
call fcn.004ca370
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00442240
lea ecx, [esp + 0x1040]
call fcn.00442240
push 1
mov ecx, 0x5275b8
call fcn.0043d590
test esi, esi
je 0x4ca793
push ebp
call fcn.00443160
cmp esi, 0xa
jne 0x4ca767
mov esi, 0xe
mov byte [esp + 0x3070], 1
lea ecx, [esp + 0x1040]
call fcn.00442640
mov dword [esp + 0x3070], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00442640
mov eax, esi
jmp 0x4ca7c3
push ebx
call fcn.00443160
mov byte [esp + 0x3070], 1
lea ecx, [esp + 0x1040]
call fcn.00442640
mov dword [esp + 0x3070], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00442640
xor eax, eax
mov ecx, dword [esp + 0x3068]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3050]
xor ecx, esp
call fcn.004df824
add esp, 0x3060
ret 8