Function at 0x470fa8
Capabilities:
Get common file path

Disassembly:
push 0x358
mov eax, 0x4880a0
call fcn.00483193
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0xc], ebx
push 0x5c
pop edx
mov eax, dword [esi]
mov cl, byte [eax]
cmp cl, dl
je 0x4b6f07
cmp cl, 0x2f
je 0x4b6f07
cmp byte [eax + 1], 0x3a
jne 0x4b6e1d
mov al, byte [eax + 2]
cmp al, dl
jne 0x471026
mov bl, 1
mov eax, dword [edi + 8]
add eax, dword [edi + 4]
mov byte [eax], cl
inc dword [edi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov byte [ecx + eax], 0x3a
inc dword [edi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov byte [ecx + eax], dl
inc dword [edi + 8]
test bl, bl
je 0x47102c
add dword [esi], 3
mov dword [edi + 0xc], 3
call fcn.0048313d
ret 4
cmp al, 0x2f
jne 0x470fec
jmp 0x470fea
add dword [esi], 2
jmp 0x471017
lea eax, [ebp - 0x218]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x47101e
lea eax, [ebp - 0x340]
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x238], ebx
mov byte [ebp - 0x340], bl
mov dword [ebp - 0x348], eax
push 1
push 1
push esi
lea ecx, [ebp - 0x348]
mov dword [ebp - 4], 2
call fcn.0043addc
lea eax, [ebp - 0x348]
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x360], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 0x348]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x35c], eax
mov dword [ebp - 0x358], ebx
call fcn.00427f08
mov byte [ebp - 4], 3
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
jb 0x4b6ebb
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x360]
call fcn.00470df4
mov esi, dword [ebp - 0x344]
lea ecx, [ebp - 0x348]
push 1
push ebx
mov byte [ebp - 0x34c], 0x5c
lea eax, [esi + 1]
push eax
call fcn.0043addc
mov ecx, dword [ebp - 0x348]
lea eax, [ebp - 0x34c]
xor edx, edx
push 1
push eax
lea ecx, [esi + ecx]
inc edx
call fcn.004edc93
pop ecx
pop ecx
jmp 0x4b6fe2
mov cl, byte [eax + 1]
cmp cl, dl
je 0x4b702d
cmp cl, 0x2f
je 0x4b702d
lea eax, [ebp - 0x218]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x47101e
lea eax, [ebp - 0x340]
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x238], ebx
mov byte [ebp - 0x340], bl
mov dword [ebp - 0x348], eax
push 1
push 1
push esi
lea ecx, [ebp - 0x348]
mov dword [ebp - 4], ebx
call fcn.0043addc
lea eax, [ebp - 0x348]
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x360], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 0x348]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x35c], eax
mov dword [ebp - 0x358], ebx
call fcn.00427f08
mov byte [ebp - 4], 1
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
jb 0x4b6fb5
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x364], eax
lea ecx, [ebp - 0x360]
lea eax, [ebp - 0x364]
push eax
call fcn.00470fa8
push 1
push 1
push dword [ebp - 0x354]
lea ecx, [ebp - 0x348]
call fcn.0043addc
push dword [ebp - 0x344]
mov ecx, edi
push dword [ebp - 0x348]
call fcn.004ee66b
mov eax, dword [ebp - 0x354]
lea ecx, [ebp - 0x230]
mov dword [edi + 0xc], eax
call fcn.0043baa3
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x47101e
mov ecx, esi
call fcn.0043baa3
push 0x18
push esi
call fcn.00481cc4
pop ecx
pop ecx
jmp 0x47101e
mov cl, byte [eax + 2]
cmp cl, 0x2e
jne 0x4b70a9
mov cl, byte [eax + 3]
cmp cl, dl
je 0x4b7085
cmp cl, 0x2f
je 0x4b7085
cmp cl, bl
jne 0x4b70f1
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push 4
mov byte [ecx + eax], dl
inc dword [edi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov byte [ecx + eax], dl
inc dword [edi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov byte [ecx + eax], 0x2e
inc dword [edi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov byte [ecx + eax], dl
inc dword [edi + 8]
add dword [esi], 3
pop ecx
jmp 0x4b714a
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
mov byte [ecx + eax], dl
inc dword [edi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov byte [ecx + eax], dl
inc dword [edi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov byte [ecx + eax], 0x2e
jmp 0x4b70db
cmp cl, 0x3f
jne 0x4b70f1
mov al, byte [eax + 3]
cmp al, dl
je 0x4b70b9
cmp al, 0x2f
jne 0x4b70f1
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
mov byte [ecx + eax], dl
inc dword [edi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov byte [ecx + eax], dl
inc dword [edi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov byte [ecx + eax], 0x3f
inc dword [edi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
push 4
mov byte [ecx + eax], dl
inc dword [edi + 8]
pop ecx
add dword [esi], ecx
jmp 0x4b714a
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push esi
mov byte [ecx + eax], dl
inc dword [edi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov byte [ecx + eax], dl
mov ecx, edi
inc dword [edi + 8]
add dword [esi], 2
call fcn.004ee632
test al, al
je 0x4b712f
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
push esi
mov byte [ecx + eax], 0x5c
mov ecx, edi
inc dword [edi + 8]
inc dword [esi]
call fcn.004ee632
mov eax, dword [esi]
mov ecx, dword [edi + 8]
mov al, byte [eax]
cmp al, 0x5c
je 0x4b713e
cmp al, 0x2f
jne 0x4b714a
mov eax, dword [edi + 4]
mov byte [ecx + eax], 0x5c
inc dword [edi + 8]
inc dword [esi]
mov dword [edi + 0xc], ecx
jmp 0x47101e