Function at 0x458240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0c
mov eax, dword [0x4f0100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xc04]
mov esi, ecx
push eax
push 0x400
mov edi, edx
mov dword [ebp - 0xc0c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test esi, esi
jne 0x4582a2
lea ecx, [ebp - 0xc04]
mov eax, ecx
sub edi, eax
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x458280
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b4e2
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0xc08], eax
movzx eax, word [esi]
push ebx
xor ebx, ebx
cmp eax, 0x5c
jne 0x4582e9
cmp word [esi + 2], ax
je 0x4582f4
movzx eax, word [ebp - 0xc04]
lea ecx, [ebx + 2]
mov word [edi], ax
mov edx, 1
movzx eax, word [ebp - 0xc02]
mov word [edi + 2], ax
xor eax, eax
mov word [edi + 4], ax
mov dword [ebp - 0xc08], edx
jmp 0x45838d
cmp eax, 0x2f
jne 0x45830d
cmp word [esi + 2], ax
jne 0x45830d
mov edx, 2
mov dword [edi], 0x5c
mov dword [ebp - 0xc08], edx
lea ecx, [edx - 1]
jmp 0x45838d
cmp word [esi + 2], 0x3a
jne 0x45833e
mov word [edi], ax
xor edx, edx
mov ax, word [esi + 2]
mov ecx, 2
mov word [edi + 2], ax
xor eax, eax
mov word [edi + 4], ax
cmp word [esi + 4], 0x5c
sete dl
add edx, ecx
mov dword [ebp - 0xc08], edx
jmp 0x45838d
lea ecx, [ebp - 0xc04]
mov edx, edi
mov eax, ecx
sub edx, eax
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x458350
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458365
sub ecx, edx
sar ecx, 1
movzx eax, word [edi + ecx*2 - 2]
cmp eax, 0x5c
je 0x458383
cmp eax, 0x2f
jne 0x45838b
xor eax, eax
mov word [edi + ecx*2 - 2], ax
dec ecx
xor edx, edx
movzx eax, word [esi + edx*2]
test eax, eax
je 0x45851f
nop dword [eax]
cmp eax, 0x2f
je 0x4583d8
cmp eax, 0x5c
je 0x4583d8
mov ax, word [esi + edx*2]
mov word [ebp + ebx*2 - 0x404], ax
lea eax, [ebx*2 + 2]
cmp eax, 0x400
jae 0x458532
xor esi, esi
inc ebx
mov word [ebp + eax - 0x404], si
jmp 0x4584cf
test ebx, ebx
je 0x4584d5
mov edx, 0x4deaf4
lea eax, [ebp - 0x404]
nop dword [eax + eax]
mov si, word [eax]
cmp si, word [edx]
jne 0x458416
test si, si
je 0x458412
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x458416
add eax, 4
add edx, 4
test si, si
jne 0x4583f0
xor eax, eax
jmp 0x45841b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4584c7
mov edx, 0x4deaf8
lea eax, [ebp - 0x404]
nop
mov si, word [eax]
cmp si, word [edx]
jne 0x458456
test si, si
je 0x458452
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x458456
add eax, 4
add edx, 4
test si, si
jne 0x458430
xor eax, eax
jmp 0x45845b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45849c
movzx eax, word [edi + ecx*2 - 2]
dec ecx
mov edx, eax
cmp eax, 0x5c
je 0x45848a
nop dword [eax]
movzx eax, dx
cmp eax, 0x2f
je 0x45848a
cmp eax, 0x3a
je 0x45848a
movzx eax, word [edi + ecx*2 - 2]
dec ecx
mov edx, eax
cmp eax, 0x5c
jne 0x458470
cmp word [edi + ecx*2], 0x3a
je 0x458499
xor eax, eax
mov word [edi + ecx*2], ax
jmp 0x4584c7
inc ecx
jmp 0x4584c7
mov eax, 0x5c
lea edx, [ebp - 0x404]
mov word [edi + ecx*2], ax
inc ecx
mov eax, edx
lea esi, [ecx + ecx]
sub esi, eax
add esi, edi
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x4584b5
add ecx, ebx
mov edx, dword [ebp - 0xc08]
xor ebx, ebx
mov esi, dword [ebp - 0xc0c]
mov eax, dword [ebp - 0xc08]
inc edx
movzx eax, word [esi + eax*2 + 2]
test eax, eax
je 0x4584f0
mov dword [ebp - 0xc08], edx
jmp 0x4583a0
test ebx, ebx
je 0x45851f
lea edx, [edi + ecx*2]
mov eax, 0x5c
mov word [edx], ax
lea ecx, [ebp - 0x404]
mov eax, ecx
sub edx, eax
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx], ax
test ax, ax
jne 0x458510
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0047b4e2
mov esp, ebp
pop ebp
ret
call fcn.0047b6f8
int3