Function at 0x490a74
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffa0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
mov eax, 0x4afd50
call fcn.004992ac
push esi
push edi
call fcn.00498e30
add esp, 8
test eax, eax
jne 0x490ab4
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x490d7d
xor ebx, ebx
lea eax, [ebp - 0x1060]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
xor edx, edx
mov dl, byte [ebp - 0x1060]
mov dword [ebp - 0xc4c], edx
push dword [ebp - 0xc4c]
call fcn.0049ce34
pop ecx
mov dword [ebp - 0xc48], eax
xor ecx, ecx
mov cl, byte [ebp - 0x1060]
cmp ecx, 0x5c
je 0x490b68
xor eax, eax
mov al, byte [esi]
cmp eax, 0x5c
je 0x490b68
xor edx, edx
mov dl, byte [edi]
cmp edx, 0x5c
je 0x490b68
xor ecx, ecx
mov cl, byte [esi]
mov dword [ebp - 0xc54], ecx
push dword [ebp - 0xc54]
call fcn.0049ce34
pop ecx
mov dword [ebp - 0xc50], eax
xor eax, eax
mov al, byte [edi]
mov dword [ebp - 0xc58], eax
push dword [ebp - 0xc58]
call fcn.0049ce34
pop ecx
xor edx, edx
mov dl, byte [esi + 1]
cmp edx, 0x3a
je 0x490b4e
mov ecx, dword [ebp - 0xc48]
mov dword [ebp - 0xc50], ecx
xor edx, edx
mov dl, byte [edi + 1]
cmp edx, 0x3a
je 0x490b5e
mov eax, dword [ebp - 0xc48]
cmp eax, dword [ebp - 0xc50]
je 0x490b68
mov bl, 1
xor edx, edx
mov eax, edi
call fcn.0040a838
test al, al
je 0x490c4a
mov word [ebp - 0xc34], 8
lea eax, [ebp - 0xc20]
call fcn.00409758
inc dword [ebp - 0xc28]
mov word [ebp - 0xc34], 0x14
push 0
push 1
lea eax, [ebp - 0xc20]
xor ecx, ecx
mov edx, edi
call fcn.0040984c
test al, al
je 0x490bc2
lea eax, [ebp - 0xc20]
call fcn.00409afc
test al, al
jne 0x490bf1
mov eax, 0xf
mov edx, 2
push eax
lea eax, [ebp - 0xc20]
dec dword [ebp - 0xc28]
call fcn.00409808
pop eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x490d7d
mov eax, edi
call fcn.0040b074
test al, al
jne 0x490c2b
mov eax, 0xf
mov edx, 2
push eax
lea eax, [ebp - 0xc20]
dec dword [ebp - 0xc28]
call fcn.00409808
pop eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x490d7d
dec dword [ebp - 0xc28]
lea eax, [ebp - 0xc20]
mov edx, 2
call fcn.00409808
mov word [ebp - 0xc34], 0
test bl, bl
jne 0x490c66
push 0
mov ecx, edi
xor edx, edx
mov eax, esi
call fcn.0040b01c
xor ebx, ebx
mov bl, al
cmp ebx, 1
sbb ebx, ebx
neg ebx
test bl, bl
je 0x490d6e
push 0x4afd1c
push esi
call fcn.0049adac
add esp, 8
mov dword [ebp - 0xc5c], eax
test eax, eax
jne 0x490caf
mov eax, 0x4b3b9c
mov ecx, esi
mov edx, dword [0x4e8660]
call fcn.0042db20
mov eax, 0xa
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x490d7d
push 0x4afd1f
push edi
call fcn.0049adac
add esp, 8
mov dword [ebp - 0xc60], eax
test eax, eax
jne 0x490cea
push dword [ebp - 0xc5c]
call fcn.0049a8b4
pop ecx
mov eax, 0xf
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x490d7d
mov eax, 0x4b3b9c
xor edx, edx
call fcn.0042dcbc
or ecx, 0xffffffff
mov edx, dword [ebp - 0xc60]
mov eax, dword [ebp - 0xc5c]
call fcn.00490dcc
push dword [ebp - 0xc5c]
mov ebx, eax
call fcn.0049a8b4
pop ecx
mov eax, 0x4b3b9c
mov dl, 1
call fcn.0042dcbc
push dword [ebp - 0xc60]
call fcn.0049a8b4
pop ecx
test eax, eax
jne 0x490d38
test ebx, ebx
je 0x490d67
mov eax, edi
call fcn.0040b074
test ebx, ebx
je 0x490d53
cmp ebx, 0xa
jne 0x490d4f
mov eax, 0xe
jmp 0x490d58
mov eax, ebx
jmp 0x490d58
mov eax, 0xe
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x490d7d
mov eax, esi
call fcn.0040b074
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret