Function at 0x402b20
Capabilities:
Acquire debug privileges
Get common file path

Disassembly:
mov eax, 0x1518
call fcn.00403580
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x40b850
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
xor ebx, ebx
cmp esi, ebx
je 0x402bc3
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 0x800
jge 0x402bc3
lea eax, [esp + 0x224]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x224]
lea edx, [esp + 0x20]
push str.NTHANDLE.SYS
push ecx
push str._sDrivers_s
push edx
call sub.MSVCRT.dll_sprintf
add esp, 0x10
lea edx, [esp + 0x20]
mov ecx, 0x409d14
call fcn.00401280
test eax, eax
je 0x402bc3
push 0x405020
lea edx, [esp + 0x24]
mov ecx, str.NTHANDLE
call fcn.00401650
test eax, eax
jne 0x402bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00401920
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1518
ret
call fcn.00401960
test al, al
jne 0x402bf5
push str.Incorrect_version_of_NT_n
call sub.MSVCRT.dll_printf
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1518
ret
call fcn.00401b00
mov edx, 0x409148
lea edi, [edx - 0x120]
or ecx, 0xffffffff
xor eax, eax
add edx, 0x124
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, 0x409820
mov dword [edx - 0x124], ecx
jl 0x402bff
mov ecx, str.SeDebugPrivilege
call fcn.00401580
call fcn.00401c40
mov dword [0x40fa88], eax
call fcn.00401c90
mov dword [0x40fa8c], eax
mov eax, dword [0x40fa88]
cmp dword [eax], ebx
ja 0x402c7e
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x40fa8c]
add esp, 4
cmp eax, ebx
mov dword [0x40fa88], ebx
je 0x402c71
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [0x40fa8c], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1518
ret
mov al, byte [0x40fa94]
mov ecx, 0x1ff
mov byte [esp + 0xd28], al
xor eax, eax
lea edi, [esp + 0xd29]
mov edx, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xd28]
push ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.004010c0
lea edi, [esp + 0xd28]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x40fa88]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [eax]
cmp ecx, ebx
jle 0x402e3c
xor ebp, ebp
mov dword [esp + 0x18], ebp
lea ebp, [eax + ebp + 4]
xor edx, edx
lea eax, [esp + 0x528]
push 0x800
mov dl, byte [ebp + 4]
mov ecx, dword [ebp + 8]
mov esi, edx
push eax
shl esi, 6
add esi, 0x40ba88
push ecx
mov edx, ebx
mov ecx, esi
call fcn.00401e00
mov al, byte [esp + 0x528]
test al, al
je 0x402e1b
push str.File
push esi
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
je 0x402d45
push 0x40fa94
push esi
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x402e1b
lea edi, [esp + 0x528]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
cmp ecx, eax
jl 0x402e1b
mov edx, eax
lea eax, [esp + 0xd28]
push edx
lea ecx, [esp + 0x52c]
push eax
push ecx
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x402e1b
mov edx, dword [esp + 0x10]
mov al, byte [esp + edx + 0x528]
cmp al, 0x5c
je 0x402d9c
cmp al, 0x2f
je 0x402d9c
test al, al
jne 0x402e1b
mov eax, dword [ebp]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x402de0
lea ecx, [esp + 0x328]
push ecx
push eax
call fcn.00401d30
mov ecx, dword [ebp]
add esp, 8
lea edx, [esp + 0x124]
push 0x100
push edx
push 0x100
lea edx, [esp + 0x434]
call fcn.00401330
mov eax, dword [ebp]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x528]
call section..text
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [ebp + 6]
lea edx, [esp + 0x528]
push ecx
push edx
lea ecx, [esp + 0x430]
push eax
push ecx
lea edx, [esp + 0x134]
lea ecx, [esp + 0x338]
call fcn.004028d0
mov eax, dword [0x40fa88]
mov ebp, dword [esp + 0x18]
inc ebx
add ebp, 0x10
mov ecx, dword [eax]
mov dword [esp + 0x18], ebp
cmp ebx, ecx
jl 0x402ce0
mov esi, dword [esp + 0x1c]
xor ebx, ebx
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x40fa8c]
add esp, 4
cmp eax, ebx
mov dword [0x40fa88], ebx
je 0x402e63
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [0x40fa8c], ebx
cmp dword [0x40b810], ebx
je 0x402e95
mov edx, 0x40b868
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402e74
push ebx
push 0x402240
push ebx
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1518
ret