Function at 0x402e20
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4746f6
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x498e00]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x498e00]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xf4]
push eax
lea ecx, [esp + 0x20]
call fcn.00402d60
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0xec], esi
call fcn.00402370
push 4
push esi
push esi
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402ebe
push str.GetClassDevs_All_Present_Devices_
call fcn.00401a90
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0xec], ebx
lea ecx, [eax + 0xc]
or edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4031c5
lea ecx, [esp + 0x30]
push ecx
push esi
push ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 0x1c
mov dword [esp + 0x38], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x403185
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea edx, [esp + 0x18]
push edx
xor ebp, ebp
push ebp
push ebp
lea eax, [esp + 0x30]
push eax
push 1
lea ecx, [esp + 0x44]
push ecx
push ebx
mov dword [esp + 0x34], ebp
call esi
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebp
je 0x402f1e
push eax
push 0x40
call edi
mov ebp, eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
push ebp
lea eax, [esp + 0x30]
push eax
push 1
lea ecx, [esp + 0x44]
push ecx
push ebx
call esi
test eax, eax
jne 0x402f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
je 0x402f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4031fb
test ebp, ebp
je 0x402f5d
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x18]
push edx
push 0x40
call edi
mov ecx, dword [esp + 0x18]
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ecx
push ebp
lea edx, [esp + 0x30]
push edx
push 1
lea eax, [esp + 0x44]
push eax
push ebx
call esi
test eax, eax
je 0x402f38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
je 0x403167
cmp byte [ebp], 0
mov edi, ebp
je 0x403159
mov ecx, dword [esp + 0x18]
add ecx, ebp
cmp edi, ecx
jae 0x403159
push edi
lea ecx, [esp + 0x18]
call fcn.00402d60
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
mov byte [esp + 0xec], 1
jge 0x402fe7
push esi
lea ecx, [esp + 0x18]
call fcn.00401e80
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.00448d7d
push eax
call fcn.004012b0
add esp, 0xc
test esi, esi
jl 0x40327c
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40327c
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x14]
mov byte [esi + ecx], 0
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40320d
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00448923
add esp, 8
test eax, eax
sete al
test al, al
jne 0x403086
mov byte [esp + 0xec], al
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40306b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax + 1], 0
lea edi, [edi + eax + 1]
jne 0x402fa1
jmp 0x403159
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, 1
cmp dword [esp + 0x5c], esi
jne 0x4030d9
cmp dword [esp + 0x50], 4
jne 0x4030d9
cmp dword [esp + 0x54], 0xa
jne 0x4030d9
lea edx, [esp + 0x30]
push edx
push ebx
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x4030d1
push str.CallClassInstaller_REMOVE_
call fcn.00401a90
add esp, 4
mov dword [0x49a284], esi
jmp 0x40312d
push 0
push 4
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push 0xa
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x403217
or dword [esp + 0x20], 0x400
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
lea ecx, [esp + 0x24]
push ecx
push 0xa
lea edx, [esp + 0x3c]
push edx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyA]
test eax, eax
je 0x403253
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xec], 0
mov dword [esp + 0x28], esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403159
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x28], 0
jne 0x403185
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
inc eax
push ecx
push eax
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x402ee3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
test esi, esi
sete cl
add eax, 0xfffffff0
mov dword [esp + 0xec], 0xffffffff
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4031d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00448544
add esp, 0xdc
ret
push str.GetDeviceRegistryProperty
call fcn.00401a90
add esp, 4
jmp 0x403185
push 0x80004005
call fcn.004013b0
test ebp, ebp
je 0x403222
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xec], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403185
test ebp, ebp
je 0x40325e
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xec], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40323e
push 0x80070057
call fcn.004013b0
int3