Function at 0x402b90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x66c
mov dword [ebp - 0x650], edx
mov dword [ebp - 0x654], ecx
mov dword [ebp - 0x644], 0x10
mov dword [ebp - 0x640], 0xb
mov dword [ebp - 0x63c], 0x18
mov dword [ebp - 0x638], 0x19
mov dword [ebp - 0x634], 0x16
test byte [section..data], 8
jne 0x402e90
lea edi, [ebp - 0x428]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub eax, 1
sub esp, 0x10
cmp eax, 0x103
ja 0x402d88
test byte [section..data], 8
jne 0x402d98
lea eax, [ebp - 0x630]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetLongPathNameW]
mov dword [ebp - 0x64c], eax
sub eax, 1
sub esp, 0xc
cmp eax, 0x103
ja 0x402d88
lea ebx, [ebp - 0x220]
test byte [section..data], 8
jne 0x4030a8
lea esi, [ebp - 0x644]
mov edi, 7
jmp 0x402c93
lea eax, [ebp - 0x630]
cmp eax, esi
je 0x402d88
mov edi, dword [esi]
add esi, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.shell32.dll_SHGetSpecialFolderPathW
sub esp, 0x10
test eax, eax
je 0x402c80
cmp word [ebp - 0x220], 0
je 0x4032c8
mov eax, ebx
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402cd0
sub eax, ebx
mov ecx, eax
sar eax, 1
cmp dword [ebp - 0x64c], eax
jb 0x402c80
cmp ecx, 0x206
ja 0x402c80
cmp word [ebp + eax*2 - 0x630], 0x5c
jne 0x402c80
mov dword [esp + 8], eax
lea eax, [ebp - 0x630]
mov dword [ebp - 0x658], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x402c80
mov ecx, dword [ebp - 0x658]
mov eax, dword [ebp - 0x650]
lea ebx, [ebp + ecx - 0x62e]
mov dword [eax], edi
cmp word [ebx], 0
je 0x403453
mov eax, ebx
add eax, 2
cmp word [eax], 0
jne 0x402d40
sub eax, ebx
add eax, 2
call fcn.00401510
xor edx, edx
lea esi, [esi]
movzx ecx, word [ebx + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x402d58
mov ebx, dword [ebp - 0x654]
mov dword [ebx], eax
mov dword [esp], eax
call sub.shlwapi.dll_PathRemoveExtensionW
mov eax, 1
sub esp, 4
jmp 0x402d8a
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
shr eax, 0x10
je 0x402fc0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x402fd3
movzx eax, word [ebp - 0x428]
test ax, ax
je 0x403432
lea esi, [esi]
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x402de0
mov esi, 0x224c
mov dword [ebp - 0x64c], edi
lea ecx, [ebp - 0x21e]
mov word [ebp - 0x220], si
jmp 0x402e54
cmp ax, 9
je 0x4031f0
cmp ax, 0xa
jne 0x40320e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [edx - 1]
test edx, edx
jle 0x403379
lea eax, [ebp - 0xfe]
cmp ecx, eax
ja 0x403379
mov eax, dword [ebp - 0x64c]
mov edx, esi
movzx eax, word [eax]
add dword [ebp - 0x64c], 2
cmp ax, 0xd
je 0x403278
jbe 0x402e10
cmp ax, 0x22
je 0x403260
cmp ax, 0x5c
jne 0x403201
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x402e30
shr eax, 0x10
je 0x402f80
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x402f93
movzx eax, word [esi]
test ax, ax
je 0x4033e9
lea esi, [esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x402ed0
mov ecx, 0x224c
mov dword [ebp - 0x64c], esi
mov word [ebp - 0x220], cx
lea ecx, [ebp - 0x21e]
jmp 0x402f44
cmp ax, 9
je 0x403018
cmp ax, 0xa
jne 0x403036
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x403290
lea eax, [ebp - 0xfe]
cmp ecx, eax
ja 0x403290
mov eax, dword [ebp - 0x64c]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0x64c], 2
cmp ax, 0xd
je 0x403000
jbe 0x402f00
cmp ax, 0x22
je 0x403090
cmp ax, 0x5c
jne 0x403029
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x402f20
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40f307
mov dword [esp + 8], str.get_link_location
mov dword [esp + 4], 0x40e000
mov dword [esp], 3
call fcn.00401480
jmp 0x402be9
movzx eax, di
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40f307
mov dword [esp + 8], str.get_link_location
mov dword [esp + 4], 0x40e000
mov dword [esp], 3
call fcn.00401480
jmp 0x402c2a
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402f20
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402f20
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4033aa
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x402f20
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x402f20
lea eax, [ebp - 0x630]
shr eax, 0x10
je 0x40340a
lea eax, [ebp - 0x630]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x4031bd
movzx eax, word [ebp - 0x630]
test ax, ax
je 0x4033c8
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x62e], 0
jne 0x4030f0
mov edi, 0x224c
lea ebx, [ebp - 0x630]
lea ecx, [ebp - 0x21e]
mov word [ebp - 0x220], di
mov dword [ebp - 0x658], ebx
jmp 0x40315c
cmp ax, 9
je 0x4032d8
cmp ax, 0xa
jne 0x4032f6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x403191
lea eax, [ebp - 0xfe]
cmp ecx, eax
ja 0x403191
mov eax, dword [ebp - 0x658]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0x658], 2
cmp ax, 0xd
je 0x403350
jbe 0x403120
cmp ax, 0x22
je 0x403368
cmp ax, 0x5c
jne 0x4032e9
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x403140
mov byte [ecx], 0x22
test edi, edi
jle 0x4033e1
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
lea ebx, [ebp - 0x220]
mov byte [eax], 0
mov dword [esp], ebx
call fcn.0040dba0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40f307
mov dword [esp + 8], str.get_link_location
mov dword [esp + 4], 0x40e000
mov dword [esp], 3
call fcn.00401480
jmp 0x402c6f
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402e30
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x4033b4
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdef]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdef]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdef]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x402e30
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x402e30
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x402e30
mov byte [ecx], 0x22
test edi, edi
jle 0x403402
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
lea ebx, [ebp - 0x220]
mov byte [eax], 0
mov dword [esp], ebx
call fcn.0040dba0
jmp 0x402f93
xor ecx, ecx
xor eax, eax
jmp 0x402cef
mov edi, 0x745c
add ecx, 2
mov word [ecx - 2], di
jmp 0x403140
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x4033be
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdef]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdef]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdef]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x403140
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x403140
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x403140
mov byte [ecx], 0x22
test esi, esi
jle 0x40344b
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
lea ebx, [ebp - 0x220]
mov byte [eax], 0
mov dword [esp], ebx
call fcn.0040dba0
jmp 0x402fd3
mov byte [ecx], al
add ecx, 1
jmp 0x402f20
mov byte [ecx], al
add ecx, 1
jmp 0x402e30
mov byte [ecx], al
add ecx, 1
jmp 0x403140
mov eax, 0x224c
mov byte [ebp - 0x21e], 0x22
lea ecx, [ebp - 0x21e]
mov word [ebp - 0x220], ax
lea eax, [ecx + 1]
jmp 0x4031ac
mov eax, 0x224c
mov byte [ebp - 0x21e], 0x22
lea ecx, [ebp - 0x21e]
mov word [ebp - 0x220], ax
lea eax, [ecx + 1]
jmp 0x4032ab
lea eax, [ebp - 0x630]
mov dword [esp], str._04x
mov dword [ebp - 0x658], eax
movzx eax, word [ebp - 0x658]
mov dword [esp + 4], eax
call fcn.004019b0
jmp 0x4031bd
mov ebx, 0x224c
mov byte [ebp - 0x21e], 0x22
lea ecx, [ebp - 0x21e]
mov word [ebp - 0x220], bx
lea eax, [ecx + 1]
jmp 0x403394
mov eax, 2
jmp 0x402d4e