Function at 0x404bc0
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 0x404c22
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 0x404c00
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041badb
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc08], 0
cmp eax, 0x5c
jne 0x404c6b
cmp word [esi + 2], ax
je 0x404c76
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 0x404d0d
cmp eax, 0x2f
jne 0x404c8f
cmp word [esi + 2], ax
jne 0x404c8f
mov edx, 2
mov dword [edi], 0x5c
mov dword [ebp - 0xc08], edx
lea ecx, [edx - 1]
jmp 0x404d0d
cmp word [esi + 2], 0x3a
jne 0x404cc0
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 0x404d0d
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 0x404cd0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404ce5
sub ecx, edx
sar ecx, 1
movzx eax, word [edi + ecx*2 - 2]
cmp eax, 0x5c
je 0x404d03
cmp eax, 0x2f
jne 0x404d0b
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 0x404ea0
nop dword [eax]
cmp eax, 0x2f
je 0x404d58
cmp eax, 0x5c
je 0x404d58
mov ax, word [esi + edx*2]
mov word [ebp + ebx*2 - 0x404], ax
lea eax, [ebx*2 + 2]
cmp eax, 0x400
jae 0x404eb3
xor esi, esi
inc ebx
mov word [ebp + eax - 0x404], si
jmp 0x404e5a
test ebx, ebx
je 0x404e60
mov edx, 0x449f08
lea eax, [ebp - 0x404]
nop dword [eax + eax]
mov si, word [eax]
cmp si, word [edx]
jne 0x404d96
test si, si
je 0x404d92
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x404d96
add eax, 4
add edx, 4
test si, si
jne 0x404d70
xor eax, eax
jmp 0x404d9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x404e52
mov edx, 0x449f0c
lea eax, [ebp - 0x404]
nop
mov si, word [eax]
cmp si, word [edx]
jne 0x404dd6
test si, si
je 0x404dd2
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x404dd6
add eax, 4
add edx, 4
test si, si
jne 0x404db0
xor eax, eax
jmp 0x404ddb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404e1c
movzx eax, word [edi + ecx*2 - 2]
dec ecx
mov edx, eax
cmp eax, 0x5c
je 0x404e0a
nop dword [eax]
movzx eax, dx
cmp eax, 0x2f
je 0x404e0a
cmp eax, 0x3a
je 0x404e0a
movzx eax, word [edi + ecx*2 - 2]
dec ecx
mov edx, eax
cmp eax, 0x5c
jne 0x404df0
cmp word [edi + ecx*2], 0x3a
je 0x404e19
xor eax, eax
mov word [edi + ecx*2], ax
jmp 0x404e52
inc ecx
jmp 0x404e52
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 0x404e40
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 0x404d20
test ebx, ebx
je 0x404ea0
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 0x404e90
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041badb
mov esp, ebp
pop ebp
ret
call fcn.0041bc0b
int3