Function at 0x4ca330
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4f8081
mov eax, dword fs:[0]
push eax
mov eax, 0x3054
call fcn.004df2e0
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 0x4ca3ae
test dx, dx
je 0x4ca3a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ca3ae
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ca385
xor eax, eax
or esi, 0xffffffff
jmp 0x4ca3b7
sbb eax, eax
mov esi, 0xffffffff
sbb eax, esi
test eax, eax
je 0x4ca621
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.004e39a1
add esp, 4
cmp word [esp + 0x2064], 0x5c
mov edi, eax
je 0x4ca43e
movzx eax, word [ebx]
cmp ax, 0x5c
je 0x4ca43e
cmp word [ebp], 0x5c
je 0x4ca43e
movzx edx, ax
push edx
call fcn.004e39a1
mov esi, eax
movzx eax, word [ebp]
push eax
call fcn.004e39a1
mov ecx, 0x3a
add esp, 8
cmp word [ebx + 2], cx
je 0x4ca42a
mov esi, edi
cmp word [ebp + 2], cx
je 0x4ca432
mov eax, edi
cmp esi, eax
je 0x4ca43b
mov byte [esp + 0x17], 1
or esi, 0xffffffff
push ebp
call fcn.004432f0
test al, al
je 0x4ca49f
lea ecx, [esp + 0x1c]
call fcn.00441d50
mov dword [esp + 0x3070], 0
push 1
push ebp
lea ecx, [esp + 0x24]
call fcn.00441dd0
test al, al
je 0x4ca552
lea ecx, [esp + 0x1c]
call fcn.00442080
test al, al
je 0x4ca552
push ebp
call fcn.00442f40
test al, al
je 0x4ca552
mov dword [esp + 0x3070], esi
lea ecx, [esp + 0x1c]
call fcn.00442480
cmp byte [esp + 0x17], 0
jne 0x4ca4ba
push ebp
push ebx
call fcn.00442ea0
test al, al
sete al
test al, al
je 0x4ca621
lea ecx, [esp + 0x1c]
call fcn.00441d50
mov dword [esp + 0x3070], 1
lea ecx, [esp + 0x1040]
call fcn.00441d50
mov byte [esp + 0x3070], 2
push 0
push ebx
lea ecx, [esp + 0x24]
call fcn.00441dd0
test al, al
jne 0x4ca52b
push ebx
mov ecx, 0x5275b8
call fcn.0043d970
mov byte [esp + 0x3070], 1
lea ecx, [esp + 0x1040]
call fcn.00442480
mov dword [esp + 0x3070], esi
lea ecx, [esp + 0x1c]
call fcn.00442480
mov eax, 0xa
jmp 0x4ca623
push 0xa
push ebp
lea ecx, [esp + 0x1048]
call fcn.00441f60
test al, al
jne 0x4ca56c
mov byte [esp + 0x3070], 1
lea ecx, [esp + 0x1040]
call fcn.00442480
mov dword [esp + 0x3070], esi
lea ecx, [esp + 0x1c]
call fcn.00442480
mov eax, 0xf
jmp 0x4ca623
push 0
mov ecx, 0x5275b8
call fcn.0043d360
push esi
push esi
lea ecx, [esp + 0x1048]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
call fcn.004ca1d0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00442080
lea ecx, [esp + 0x1040]
call fcn.00442080
push 1
mov ecx, 0x5275b8
call fcn.0043d360
test esi, esi
je 0x4ca5f3
push ebp
call fcn.00442f40
cmp esi, 0xa
jne 0x4ca5c7
mov esi, 0xe
mov byte [esp + 0x3070], 1
lea ecx, [esp + 0x1040]
call fcn.00442480
mov dword [esp + 0x3070], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00442480
mov eax, esi
jmp 0x4ca623
push ebx
call fcn.00442f40
mov byte [esp + 0x3070], 1
lea ecx, [esp + 0x1040]
call fcn.00442480
mov dword [esp + 0x3070], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00442480
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.004df2c4
add esp, 0x3060
ret 8