Function at 0x407ef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, 1
mov dword [ebp - 0xc], 0
push ebx
mov dword [ebp - 0x1c], eax
mov ebx, ecx
xor al, al
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0
mov edx, ecx
mov byte [ebp - 7], 0
mov byte [ebp - 1], 0
mov byte [ebp - 2], al
push edi
test ecx, ecx
je 0x4082d5
movzx eax, word [ecx]
mov edi, eax
test ax, ax
je 0x4082d5
push esi
mov esi, eax
cmp eax, 0x20
jne 0x407f5c
movzx eax, word [ecx + 2]
lea ecx, [ecx + 2]
cmp eax, 0x20
je 0x407f40
test ax, ax
je 0x4080ea
movzx eax, word [edx]
mov esi, eax
mov edi, eax
movzx eax, di
cmp si, 0x5c
je 0x407fd5
cmp si, 0x2f
je 0x407fd5
movzx ecx, word [ebx + 2]
mov esi, eax
cmp ecx, 0x3a
jne 0x407f93
cmp word [ebx + 4], 0
jne 0x407f93
mov eax, 1
mov byte [ebp - 2], 1
mov edi, edx
mov dword [ebp - 0x14], eax
lea esi, [ecx - 0x38]
jmp 0x4080c6
movzx ebx, ax
mov edi, edx
movzx eax, si
cmp ecx, 0x3a
jne 0x40809b
mov ecx, edx
mov eax, ebx
movzx esi, word [ecx + 4]
cmp esi, 0x5c
je 0x40809b
cmp esi, 0x2f
je 0x40809b
mov eax, 1
mov byte [ebp - 2], 2
lea edi, [ecx + 4]
mov dword [ebp - 0x14], eax
lea esi, [eax + 1]
jmp 0x4080c6
movzx eax, word [edx + 2]
lea edi, [edx + 2]
mov esi, edi
cmp eax, 0x5c
je 0x40800f
cmp eax, 0x2f
je 0x40800f
xor dl, dl
cmp eax, 0x3f
je 0x408011
mov bl, byte [ebp - 1]
movzx eax, word [edi]
mov ecx, eax
cmp eax, 0x5c
je 0x40800a
cmp eax, 0x2f
je 0x40800a
cmp eax, 0x3f
jne 0x408084
add edi, 2
jmp 0x407ff2
mov dl, 1
movzx eax, word [edi + 2]
add edi, 2
cmp eax, 0x3f
je 0x408022
cmp eax, 0x2e
jne 0x407fef
movzx eax, word [edi + 2]
add edi, 2
cmp eax, 0x5c
je 0x408033
cmp eax, 0x2f
jne 0x407fef
movzx eax, word [edi + 2]
cmp eax, 0x55
je 0x408041
cmp eax, 0x75
jne 0x40806b
movzx eax, word [edi + 4]
cmp eax, 0x4e
je 0x40804f
cmp eax, 0x6e
jne 0x40806b
movzx eax, word [edi + 6]
cmp eax, 0x43
je 0x40805d
cmp eax, 0x63
jne 0x40806b
movzx eax, word [edi + 8]
cmp eax, 0x5c
je 0x408077
cmp eax, 0x2f
je 0x408077
mov bl, 1
xor dl, dl
mov byte [ebp - 1], bl
jmp 0x407ff2
mov bl, 1
add edi, 8
mov byte [ebp - 1], bl
jmp 0x407ff2
test dl, dl
jne 0x4080b9
cmp edi, esi
sete byte [ebp - 7]
je 0x4080ac
mov eax, ecx
mov esi, 2
test bl, bl
jne 0x4080c4
mov esi, 2
test ax, ax
je 0x4080c4
cmp word [edi + 2], 0x3a
je 0x4080c4
mov eax, 1
mov dword [ebp - 0x14], eax
lea esi, [eax + 1]
jmp 0x4080c6
mov eax, 2
mov dword [ebp - 0x1c], eax
lea esi, [eax + 4]
xor eax, eax
add eax, 0x801e
mov ebx, 0x8000
add eax, eax
push eax
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
jne 0x4080f3
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi*2 + 6]
push eax
push str._UNC_
push ecx
call fcn.0043c9e0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
lea esi, [eax + esi*2]
test ecx, ecx
je 0x4081d4
lea eax, [esi + 4]
push eax
lea eax, [ecx + 0x801e]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4081d4
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 0x408187
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [0x457638], eax
mov eax, dword [ebp - 0xc]
cmp word [esi + 4], ax
je 0x40817d
mov word [esi + 4], ax
xor eax, eax
mov word [esi + 0xa], ax
mov dword [0x457638], 7
mov eax, dword [ebp - 0x10]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 2
jne 0x4081a2
mov eax, dword [ebp - 0xc]
cmp word [esi + 4], ax
je 0x4081a2
mov word [esi + 4], ax
mov edx, 1
add esi, 6
jmp 0x4081d6
cmp byte [ebp - 7], 0
je 0x4081b2
add esi, 6
mov edx, 1
jmp 0x4081d6
add esi, 2
xor edx, edx
movzx eax, word [esi + 2]
mov ecx, esi
add esi, 2
test ax, ax
je 0x4081ca
cmp eax, 0x5c
jne 0x4081b7
inc edx
test ax, ax
jne 0x4081b7
mov esi, ecx
jmp 0x4081d6
xor edx, edx
mov ecx, 0x5c
nop dword [eax + eax]
mov dword [ebp - 0x18], esi
movzx eax, word [edi]
cmp eax, 0x5c
je 0x4081f0
cmp eax, 0x2f
jne 0x4081f5
add edi, 2
jmp 0x4081e3
add esi, 2
add ebx, 0xffff
mov word [esi], cx
cmp word [edi], 0x2e
jne 0x408250
cmp word [edi + 2], 0x2e
jne 0x408250
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x408221
cmp eax, 0x2f
je 0x408221
test ax, ax
jne 0x408250
mov eax, dword [ebp - 0x1c]
cmp ax, dx
jae 0x408245
mov esi, dword [ebp - 0x18]
cmp word [esi], 0x5c
je 0x40823c
sub esi, 2
inc ebx
cmp word [esi], 0x5c
jne 0x408232
add edx, 0xffff
cmp ax, dx
ja 0x408250
add edi, 4
sub esi, 2
inc ebx
jmp 0x40828e
test bx, bx
je 0x40827b
movzx eax, word [edi]
test ax, ax
je 0x40827b
cmp eax, 0x5c
je 0x40827b
cmp eax, 0x2f
je 0x40827b
add esi, 2
add ebx, 0xffff
add edi, 2
mov word [esi], ax
test bx, bx
jne 0x408255
cmp word [esi], 0x2e
mov eax, esi
jne 0x40828d
sub esi, 2
cmp word [esi], 0x2e
cmove esi, eax
inc edx
cmp word [edi], 0
je 0x4082a2
mov ecx, 0x5c
test bx, bx
jne 0x4081e0
cmp byte [ebp - 1], 0
jne 0x4082b9
cmp word [esi], 0x20
jne 0x4082b9
nop
sub esi, 2
cmp word [esi], 0x20
je 0x4082b0
add esi, 2
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x10]
sub esi, eax
sar esi, 1
mov dword [0x457638], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret