Function at 0x401770
Capabilities:
Accept command line arguments
Check os version

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
call fcn.00402de0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.004173f6
test eax, eax
je 0x401b81
push str.silent
lea ecx, [esp + 0x20]
xor ebp, ebp
call fcn.0041285b
mov edi, dword [eax]
lea ecx, [esp + 0x24]
mov esi, dword [esp + 0x148]
push esi
call fcn.004128b0
mov eax, dword [eax]
push edi
push eax
call fcn.00403c29
add esp, 8
test eax, eax
je 0x401857
push str._silent
lea ecx, [esp + 0x14]
call fcn.0041285b
mov edi, dword [eax]
push esi
lea ecx, [esp + 0x18]
call fcn.004128b0
mov ecx, dword [eax]
push edi
push ecx
call fcn.00403c29
add esp, 8
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.004127e7
lea ecx, [esp + 0x10]
call fcn.004127e7
test edi, edi
je 0x401857
push str.__silent
lea ecx, [esp + 0x24]
call fcn.0041285b
mov edi, dword [eax]
push esi
lea ecx, [esp + 0x1c]
call fcn.004128b0
mov edx, dword [eax]
push edi
push edx
call fcn.00403c29
add esp, 8
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.004127e7
lea ecx, [esp + 0x20]
call fcn.004127e7
test esi, esi
je 0x401857
xor bl, bl
jmp 0x401859
mov bl, 1
lea ecx, [esp + 0x24]
call fcn.004127e7
lea ecx, [esp + 0x1c]
call fcn.004127e7
test bl, bl
je 0x401874
mov ebp, 1
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401b54
cmp dword [esp + 0x2c], 5
jb 0x401b54
call fcn.00401d10
test eax, eax
je 0x4018c2
mov eax, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret 0x10
push ecx
mov dword [esp + 0x1c], 0
mov ecx, esp
mov dword [esp + 0x20], esp
push str.System32driversNerocd2k.sys
call fcn.0041285b
call fcn.00401610
add esp, 4
test eax, eax
je 0x401963
lea ecx, [esp + 0x18]
push ecx
call fcn.00401da0
add esp, 4
test eax, eax
je 0x401922
mov edx, dword [esp + 0x18]
push edx
call fcn.00401e70
add esp, 4
test eax, eax
jne 0x401916
mov eax, dword [esp + 0x18]
push eax
call fcn.00401ee0
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00402200
jmp 0x40196a
push 0x80
call fcn.00402e20
add esp, 4
test eax, eax
je 0x40196d
test ebp, ebp
jne 0x40196d
mov edx, dword [0x420540]
push 6
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.00412df8
push ebp
push ebp
mov eax, dword [esp + 0x18]
push eax
call fcn.00416db9
lea ecx, [esp + 0x10]
call fcn.004127e7
jmp 0x40196d
push 8
call fcn.00402df0
add esp, 4
push 1
call fcn.00402e20
add esp, 4
test eax, eax
jne 0x401a5e
push 0x80
call fcn.00402e20
add esp, 4
test eax, eax
jne 0x401a5e
lea ecx, [esp + 0x10]
push ecx
call fcn.00402140
add esp, 4
test eax, eax
je 0x401a51
push 8
call fcn.00402e20
mov edx, dword [esp + 0x14]
add esp, 4
test eax, eax
push edx
je 0x401a01
call fcn.00402280
add esp, 4
test eax, eax
je 0x401a45
test ebp, ebp
jne 0x401a45
mov eax, dword [0x420540]
push 3
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.00412df8
push ebp
push ebp
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00416db9
lea ecx, [esp + 0x14]
call fcn.004127e7
mov eax, dword [esp + 0x10]
push eax
call fcn.00402200
jmp 0x401a5b
call fcn.00402210
mov eax, dword [esp + 0x14]
push eax
call fcn.004024b0
add esp, 8
test eax, eax
je 0x401a45
test ebp, ebp
jne 0x401a45
mov ecx, dword [0x420540]
push 9
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.00412df8
push ebp
push ebp
mov edx, dword [esp + 0x1c]
push edx
call fcn.00416db9
lea ecx, [esp + 0x14]
call fcn.004127e7
mov eax, dword [esp + 0x10]
push eax
call fcn.00402200
jmp 0x401a5b
push 0x80
call fcn.00402e20
add esp, 4
push 1
call fcn.00402e20
add esp, 4
test eax, eax
jne 0x401b8b
push 0x80
call fcn.00402e20
add esp, 4
test eax, eax
jne 0x401b8b
lea ecx, [esp + 0x14]
push ecx
call fcn.00402140
add esp, 4
test eax, eax
je 0x401ab9
mov edx, dword [esp + 0x14]
push edx
call fcn.00402d10
mov eax, dword [esp + 0x18]
push eax
call fcn.00402ce0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00402200
add esp, 0xc
jmp 0x401af8
push 0x80
call fcn.00402e20
add esp, 4
test eax, eax
je 0x401af8
test ebp, ebp
jne 0x401af8
mov edx, dword [0x420540]
push 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.00412df8
push ebp
push ebp
mov eax, dword [esp + 0x18]
push eax
call fcn.00416db9
lea ecx, [esp + 0x10]
call fcn.004127e7
push 2
call fcn.00402e20
add esp, 4
test eax, eax
jne 0x401b14
push 4
call fcn.00402e20
add esp, 4
test eax, eax
je 0x401b8b
test ebp, ebp
jne 0x401b8b
mov ecx, dword [0x420540]
push 4
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
call fcn.00412df8
push ebp
push ebp
mov edx, dword [esp + 0x18]
push edx
call fcn.00416db9
lea ecx, [esp + 0x10]
call fcn.004127e7
call fcn.00402e10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret 0x10
test ebp, ebp
jne 0x401b81
mov eax, dword [0x420540]
push 2
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.00412df8
push ebp
push ebp
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00416db9
lea ecx, [esp + 0x14]
call fcn.004127e7
push 1
call fcn.00402df0
add esp, 4
call fcn.00402e10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret 0x10