Function at 0x404830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 1
mov byte [ebp - 3], al
mov byte [ebp - 1], al
mov byte [ebp - 4], al
mov byte [ebp - 2], al
mov dword [0x457638], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x14], edi
test ecx, ecx
je 0x404c09
movzx edx, word [ecx]
test dx, dx
je 0x404c09
cmp dword [edi], eax
je 0x404c09
mov eax, edx
cmp edx, 0x20
jne 0x4048a8
nop dword [eax]
movzx eax, word [ecx + 2]
lea ecx, [ecx + 2]
cmp eax, 0x20
je 0x404890
test ax, ax
je 0x404c09
movzx eax, word [esi]
cmp ax, 0x5c
je 0x404902
cmp ax, 0x2f
je 0x404902
movzx eax, word [ebx + 2]
cmp eax, 0x3a
jne 0x4048d0
cmp word [ebx + 4], 0
jne 0x4048d0
mov byte [ebp - 2], 1
lea edi, [eax - 0x38]
jmp 0x4049c4
mov edi, 2
cmp eax, 0x3a
jne 0x4049c4
mov eax, ebx
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x4049c4
cmp ecx, 0x2f
je 0x4049c4
mov byte [ebp - 2], 2
lea ebx, [eax + 4]
jmp 0x4049c4
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
mov esi, ebx
cmp eax, 0x5c
je 0x404921
cmp eax, 0x2f
je 0x404921
xor dl, dl
mov byte [ebp - 1], dl
cmp eax, 0x3f
jne 0x404990
jmp 0x404926
mov dl, 1
mov byte [ebp - 1], dl
movzx eax, word [ebx + 2]
add ebx, 2
cmp eax, 0x3f
je 0x404937
cmp eax, 0x2e
jne 0x404990
movzx eax, word [ebx + 2]
add ebx, 2
cmp eax, 0x5c
je 0x404948
cmp eax, 0x2f
jne 0x404990
movzx eax, word [ebx + 2]
cmp eax, 0x55
je 0x404956
cmp eax, 0x75
jne 0x404980
movzx eax, word [ebx + 4]
cmp eax, 0x4e
je 0x404964
cmp eax, 0x6e
jne 0x404980
movzx eax, word [ebx + 6]
cmp eax, 0x43
je 0x404972
cmp eax, 0x63
jne 0x404980
movzx eax, word [ebx + 8]
cmp eax, 0x5c
je 0x404987
cmp eax, 0x2f
je 0x404987
xor dl, dl
mov byte [ebp - 1], dl
jmp 0x40498a
add ebx, 8
mov byte [ebp - 4], 1
nop
movzx eax, word [ebx]
cmp eax, 0x5c
je 0x4049a2
cmp eax, 0x2f
je 0x4049a2
cmp eax, 0x3f
jne 0x4049a7
add ebx, 2
jmp 0x404990
test dl, dl
jne 0x4049b8
cmp ebx, esi
mov edi, 2
sete byte [ebp - 3]
jmp 0x4049c4
mov dword [ebp - 0x10], 2
mov edi, 6
mov esi, dword [ebp - 0x14]
add edi, edi
lea eax, [edi + 6]
push eax
push str._UNC_
push dword [esi]
call fcn.0043c9e0
mov esi, dword [esi]
add esp, 0xc
add esi, edi
cmp byte [ebp - 2], 0
jne 0x404a15
cmp byte [ebp - 3], 0
jne 0x404a15
cmp byte [ebp - 1], 0
jne 0x404ade
cmp byte [ebp - 4], 0
jne 0x404ade
cmp word [ebx], 0
je 0x404ade
cmp word [ebx + 2], 0x3a
je 0x404ade
lea edi, [esi + 4]
push edi
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404ade
push 1
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 0x18]
push 0x1000200
push 0x7f
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov al, byte [ebp - 2]
cmp al, 1
jne 0x404a84
mov eax, dword [ebp - 0x1c]
add esi, 0xa
add eax, 4
mov dword [0x457638], eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
cmp word [edi], ax
je 0x404a7b
mov word [edi], ax
xor eax, eax
mov word [esi], ax
mov dword [0x457638], 7
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 2
jne 0x404aa0
mov eax, dword [ebp - 0xc]
cmp word [edi], ax
je 0x404aa0
mov word [edi], ax
add esi, 6
mov eax, 1
mov dword [ebp - 8], eax
jmp 0x404ade
cmp byte [ebp - 3], 0
je 0x404ab3
mov eax, 1
add esi, 6
mov dword [ebp - 8], eax
jmp 0x404ade
add esi, 2
xor edx, edx
nop dword [eax + eax]
movzx eax, word [esi + 2]
mov ecx, esi
add esi, 2
test ax, ax
je 0x404ad3
cmp eax, 0x5c
jne 0x404ac0
inc edx
test ax, ax
jne 0x404ac0
mov dword [ebp - 8], edx
mov esi, ecx
mov eax, dword [ebp - 0x14]
mov ecx, esi
mov edx, 0x5c
sub ecx, dword [eax]
mov eax, 0x8000
sar ecx, 1
sub eax, ecx
movzx ecx, ax
mov edi, esi
movzx eax, word [ebx]
cmp eax, 0x5c
je 0x404b05
cmp eax, 0x2f
jne 0x404b0a
add ebx, 2
jmp 0x404af8
add esi, 2
add ecx, 0xffff
mov word [esi], dx
lea eax, [esi + 2]
mov edx, dword [ebp + 8]
mov dword [edx], eax
cmp word [ebx], 0x2e
jne 0x404b71
cmp word [ebx + 2], 0x2e
jne 0x404b71
movzx eax, word [ebx + 4]
cmp eax, 0x5c
je 0x404b3e
cmp eax, 0x2f
je 0x404b3e
test ax, ax
jne 0x404b71
mov eax, dword [ebp - 8]
cmp word [ebp - 0x10], ax
jae 0x404b66
mov esi, edi
cmp word [esi], 0x5c
je 0x404b5a
nop
sub esi, 2
inc ecx
cmp word [esi], 0x5c
jne 0x404b50
add eax, 0xffff
cmp word [ebp - 0x10], ax
mov dword [ebp - 8], eax
ja 0x404b71
add ebx, 4
sub esi, 2
inc ecx
jmp 0x404bc2
test cx, cx
je 0x404b9c
movzx eax, word [ebx]
test ax, ax
je 0x404b9c
cmp eax, 0x5c
je 0x404b9c
cmp eax, 0x2f
je 0x404b9c
add esi, 2
add ecx, 0xffff
add ebx, 2
mov word [esi], ax
test cx, cx
jne 0x404b76
inc dword [ebp - 8]
mov edx, esi
cmp word [esi], 0x2e
movzx eax, cx
jne 0x404bc2
add ecx, 0xffff
test cx, cx
je 0x404bc2
sub esi, 2
cmp word [esi], 0x2e
jne 0x404bc2
mov esi, edx
mov ecx, eax
cmp word [ebx], 0
je 0x404bd6
mov edx, 0x5c
test cx, cx
jne 0x404af6
cmp byte [ebp - 4], 0
jne 0x404beb
cmp word [esi], 0x20
jne 0x404beb
sub esi, 2
cmp word [esi], 0x20
je 0x404be2
add esi, 2
xor eax, eax
pop edi
mov word [esi], ax
mov eax, dword [ebp - 0x14]
sub esi, dword [eax]
mov al, 1
sar esi, 1
mov dword [0x457638], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret