Function at 0x4048d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0c
mov eax, dword [0x450008]
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 0x404932
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 0x404910
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b61b
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc08], 0
cmp eax, 0x5c
jne 0x40497b
cmp word [esi + 2], ax
je 0x404986
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 0x404a1d
cmp eax, 0x2f
jne 0x40499f
cmp word [esi + 2], ax
jne 0x40499f
mov edx, 2
mov dword [edi], 0x5c
mov dword [ebp - 0xc08], edx
lea ecx, [edx - 1]
jmp 0x404a1d
cmp word [esi + 2], 0x3a
jne 0x4049d0
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 0x404a1d
lea ecx, [ebp - 0xc04]
mov edx, edi
mov eax, ecx
sub edx, eax
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4049e0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4049f5
sub ecx, edx
sar ecx, 1
movzx eax, word [edi + ecx*2 - 2]
cmp eax, 0x5c
je 0x404a13
cmp eax, 0x2f
jne 0x404a1b
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 0x404bb0
nop dword [eax]
cmp eax, 0x2f
je 0x404a68
cmp eax, 0x5c
je 0x404a68
mov ax, word [esi + edx*2]
mov word [ebp + ebx*2 - 0x404], ax
lea eax, [ebx*2 + 2]
cmp eax, 0x400
jae 0x404bc3
xor esi, esi
inc ebx
mov word [ebp + eax - 0x404], si
jmp 0x404b6a
test ebx, ebx
je 0x404b70
mov edx, 0x449f08
lea eax, [ebp - 0x404]
nop dword [eax + eax]
mov si, word [eax]
cmp si, word [edx]
jne 0x404aa6
test si, si
je 0x404aa2
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x404aa6
add eax, 4
add edx, 4
test si, si
jne 0x404a80
xor eax, eax
jmp 0x404aab
sbb eax, eax
or eax, 1
test eax, eax
je 0x404b62
mov edx, 0x449f0c
lea eax, [ebp - 0x404]
nop
mov si, word [eax]
cmp si, word [edx]
jne 0x404ae6
test si, si
je 0x404ae2
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x404ae6
add eax, 4
add edx, 4
test si, si
jne 0x404ac0
xor eax, eax
jmp 0x404aeb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404b2c
movzx eax, word [edi + ecx*2 - 2]
dec ecx
mov edx, eax
cmp eax, 0x5c
je 0x404b1a
nop dword [eax]
movzx eax, dx
cmp eax, 0x2f
je 0x404b1a
cmp eax, 0x3a
je 0x404b1a
movzx eax, word [edi + ecx*2 - 2]
dec ecx
mov edx, eax
cmp eax, 0x5c
jne 0x404b00
cmp word [edi + ecx*2], 0x3a
je 0x404b29
xor eax, eax
mov word [edi + ecx*2], ax
jmp 0x404b62
inc ecx
jmp 0x404b62
mov eax, 0x5c
lea edx, [ebp - 0x404]
mov word [edi + ecx*2], ax
mov esi, edx
inc ecx
lea eax, [ecx + ecx]
sub eax, esi
lea esi, [eax + edi]
nop word [eax + eax]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x404b50
add ecx, ebx
mov edx, dword [ebp - 0xc08]
xor ebx, ebx
mov esi, dword [ebp - 0xc0c]
movzx eax, word [esi + edx*2 + 2]
inc edx
mov dword [ebp - 0xc08], edx
test eax, eax
jne 0x404a30
test ebx, ebx
je 0x404bb0
lea eax, [edi + ecx*2]
mov ecx, 0x5c
mov word [eax], cx
lea ecx, [ebp - 0x404]
mov edx, ecx
sub eax, edx
lea edx, [eax + 2]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x404ba0
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041b61b
mov esp, ebp
pop ebp
ret
call fcn.0041b74b
int3