Function at 0x4a7d20
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x32c
mov edi, dword [esp + 0x344]
mov esi, dword [esp + 0x340]
lea ebx, [esp + 0x14]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x104
lea ebp, [esp + 8]
mov ecx, esi
push ebp
call fcn.00465530
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
cmp ecx, 4
jb 0x4a7d84
cmp dword [eax], 0x2f3f2f2f
jne 0x4a7d84
push 3
push ebp
call fcn.004a3e30
add esp, 8
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x118], eax
sub esp, 0x10
movsd xmm0, qword [esp + 0x128]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], edi
mov dword [esp], 0xfde9
call fcn.004aafc0
add esp, 0x10
test eax, eax
jne 0x4a8015
xor edi, edi
push 0
push esi
call fcn.004a5520
add esp, 8
mov ebx, eax
test al, al
jne 0x4a7de6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x4a7eb0
mov eax, dword [esp + 0x344]
add edi, dword [eax + 4]
cmp edi, dword [esp + 0x348]
jae 0x4a7e0b
call fcn.00504d20
mov edx, eax
xor eax, eax
lea ebx, [esp + 0x14]
jmp 0x4a8015
cmp dword [esp + 0xc], 4
jb 0x4a7e1e
mov eax, dword [esp + 8]
cmp dword [eax], 0x5c3f5c5c
je 0x4a7df9
test bl, bl
jne 0x4a7e38
push ebp
call fcn.004a7010
add esp, 4
test eax, eax
je 0x4a7e38
lea ebx, [esp + 0x14]
jmp 0x4a8015
push 3
push ebp
call fcn.004a3e30
add esp, 8
push 3
push 1
push ebp
call fcn.004a5830
add esp, 0xc
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
sub esp, 0x10
movsd xmm0, qword [esp + 0x10]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x128]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.004a21f0
add esp, 0x10
mov eax, dword [esp + 0x124]
cmp eax, 3
jb 0x4a7ec8
mov ecx, dword [esp + 0x120]
movzx edx, byte [ecx]
cmp edx, 0x5c
je 0x4a7ea8
cmp edx, 0x2f
jne 0x4a7ecf
cmp byte [ecx + 1], dl
sete dl
jmp 0x4a7ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b0bb0
add esp, 4
lea ebx, [esp + 0x14]
jmp 0x4a8015
mov ecx, dword [esp + 0x120]
xor edx, edx
xor edi, edi
cmp byte [ecx + eax - 1], 0x3a
cmove edi, ecx
test dl, dl
cmovne edi, ecx
lea esi, [esp + 0x124]
mov dword [esp + 0x118], esi
mov dword [esp + 0x120], 0x208
mov dword [esp + 0x124], 0x5c3f5c5c
mov dword [esp + 0x11c], 4
cmp byte [edi + 1], 0x3a
jne 0x4a7f40
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0xc]
lea eax, [edi + 4]
cmp eax, 0x209
jb 0x4a7f84
lea ecx, [esp + 0x118]
push 1
push eax
push esi
call fcn.0046e2c0
mov eax, dword [esp + 0x11c]
jmp 0x4a7f9c
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x128], 0x5c434e55
mov dword [esp + 0x11c], 8
lea edi, [ecx - 2]
lea eax, [ecx + 6]
cmp eax, 0x209
jb 0x4a7f8f
lea ecx, [esp + 0x118]
push 1
push eax
push esi
call fcn.0046e2c0
mov eax, dword [esp + 0x11c]
jmp 0x4a7f99
mov eax, 4
test edi, edi
jne 0x4a7f9c
jmp 0x4a7fb5
mov eax, 8
cmp ecx, 2
je 0x4a7fb5
add ebx, 2
add eax, dword [esp + 0x118]
push edi
push ebx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x11c]
add eax, edi
mov dword [esp + 0x11c], eax
mov ecx, dword [esp + 0x118]
mov dword [esp + 4], eax
mov dword [esp], ecx
sub esp, 0x10
movsd xmm0, qword [esp + 0x10]
movsd qword [esp + 4], xmm0
mov eax, dword [esp + 0x354]
mov dword [esp + 0xc], eax
mov dword [esp], 0xfde9
call fcn.004aafc0
add esp, 0x10
mov ecx, dword [esp + 0x118]
cmp ecx, esi
lea ebx, [esp + 0x14]
je 0x4a8015
push ecx
mov esi, eax
mov edi, edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov edx, edi
mov eax, esi
add esp, 4
mov ecx, dword [esp + 8]
cmp ecx, ebx
je 0x4a802e
push ecx
mov esi, eax
mov edi, edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov edx, edi
mov eax, esi
add esp, 4
add esp, 0x32c
pop esi
pop edi
pop ebx
pop ebp
ret