Function at 0x412c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x1008], edx
movzx eax, word [esi]
test ax, ax
jne 0x412c99
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
cmp eax, 0x69
je 0x412ca7
push eax
call fcn.00495ca4
add esp, 4
push ebx
mov ebx, esi
lea ecx, [ebx + 2]
lea ecx, [ecx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x412cb0
movzx eax, word [esi]
sub ebx, ecx
sar ebx, 1
push edi
cmp eax, 0x5c
jne 0x412cd1
cmp word [esi + 2], ax
lea edi, [esi + 2]
je 0x412d14
cmp eax, 0x69
je 0x412cf4
push eax
call fcn.00495ca4
movzx eax, ax
add esp, 4
cmp eax, 0x41
jb 0x412e03
cmp eax, 0x5a
ja 0x412e03
cmp word [esi + 2], 0x3a
lea edi, [esi + 2]
jne 0x412e03
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x412d14
cmp eax, 0x2f
jne 0x412e03
movzx eax, word [esi]
cmp eax, 0x69
je 0x412d32
push eax
call fcn.00495ca4
movzx eax, ax
add esp, 4
cmp eax, 0x41
jb 0x412d83
cmp eax, 0x5a
ja 0x412d83
cmp word [edi], 0x3a
jne 0x412d83
lea eax, [ebx + 4]
cmp eax, 0x800
jae 0x412f37
mov ebx, dword [ebp - 0x1008]
push 4
push 0x4c043c
push ebx
call fcn.00493f28
add esp, 0xc
sub ebx, esi
mov edi, edi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ebx + esi + 6], ax
test ax, ax
jne 0x412d60
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
cmp word [esi], 0x5c
jne 0x412f37
cmp word [edi], 0x5c
jne 0x412f37
lea eax, [ebx + 6]
cmp eax, 0x800
jae 0x412f37
mov ebx, dword [ebp - 0x1008]
push 4
push 0x4c043c
push ebx
call fcn.00493f28
mov ecx, 0x4c0448
mov edx, ebx
add esp, 0xc
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx + 6], ax
test ax, ax
jne 0x412dc4
sub ebx, edi
jmp 0x412de0
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ebx + edi + 0xc], ax
test ax, ax
jne 0x412de0
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1004]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x412f37
cmp eax, 0x7ff
ja 0x412f37
movzx eax, word [esi]
cmp eax, 0x5c
je 0x412ee0
cmp eax, 0x2f
je 0x412ee0
lea ecx, [ebp - 0x1004]
call fcn.00412810
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412e51
sub ecx, edx
lea eax, [ebx + 4]
sar ecx, 1
add eax, ecx
cmp eax, 0x800
jae 0x412f37
mov ebx, dword [ebp - 0x1008]
push 4
push 0x4c043c
push ebx
call fcn.00493f28
lea ecx, [ebp - 0x1004]
mov eax, ebx
mov edx, ecx
add esp, 0xc
sub eax, edx
lea edx, [eax + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x412e95
cmp word [esi], 0x2e
jne 0x412ebc
movzx eax, word [esi + 2]
cmp eax, 0x5c
je 0x412eb9
cmp eax, 0x2f
jne 0x412ebc
add esi, 4
push 0x800
mov edx, esi
mov ecx, ebx
call fcn.00417cc0
add esp, 4
mov al, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 6]
cmp eax, 0x800
jae 0x412f37
mov ebx, dword [ebp - 0x1008]
push 4
push 0x4c043c
push ebx
call fcn.00493f28
push 2
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebx + 8]
push eax
call fcn.00493f28
add esp, 0x18
sub ebx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ebx + esi + 0xa], ax
test ax, ax
jne 0x412f14
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00493864
mov esp, ebp
pop ebp
ret