Function at 0x402930
Capabilities:
Access peb ldr_data
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41c63b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x83c
push ebx
push ebp
push esi
mov dword [esp + 0x1c], ecx
xor esi, esi
mov ebp, 0x100
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0xc], ebp
call fcn.00414e40
mov eax, dword [esp + 0x858]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [esp + 0x24c]
push str.Enum_s_
push ecx
mov dword [esp + 0x85c], esi
call ebx
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x248]
push edx
push 0x20019
push esi
mov esi, dword [0x42b564]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x402c93
push edi
mov edi, dword [0x42b568]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
lea eax, [esp + 0x15c]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
mov dword [esp + 0x38], 0
call dword [0x42b56c]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x40], eax
je 0x402c61
lea eax, [esp + 0x14c]
lea ecx, [esp + 0x24c]
push eax
push ecx
lea edx, [esp + 0x354]
push str._s_s
push edx
mov dword [esp + 0x38], ebp
call ebx
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14c]
push eax
push 8
push 0
push ecx
push edx
call esi
lea eax, [esp + 0x44]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
lea edx, [esp + 0x65c]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
call dword [0x42b56c]
test eax, eax
jne 0x402c58
lea edx, [esp + 0x64c]
lea eax, [esp + 0x34c]
push edx
push eax
lea ecx, [esp + 0x454]
push 0x423160
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x14]
lea eax, [esp + 0x44c]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push eax
push ecx
push str.Class
push edx
mov dword [esp + 0x28], ebp
call edi
mov esi, str.Ports
lea eax, [esp + 0x4c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402aff
test cl, cl
je 0x402afb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402aff
add eax, 2
add esi, 2
test cl, cl
jne 0x402adb
xor eax, eax
jmp 0x402b04
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402c44
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x54c]
push eax
push ecx
push 0
push 0
push str.Driver
push edx
mov dword [esp + 0x28], ebp
call edi
lea eax, [esp + 0x54c]
lea ecx, [esp + 0x74c]
push eax
push str.SystemCurrentControlSetServicesClass_s
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x30]
lea eax, [esp + 0x74c]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [0x42b564]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x44]
push eax
push ecx
push str.PortDriver
push edx
mov dword [esp + 0x28], ebp
call edi
mov esi, str.serial.vxd
lea eax, [esp + 0x4c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402bb7
test cl, cl
je 0x402bb3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402bb7
add eax, 2
add esi, 2
test cl, cl
jne 0x402b93
xor eax, eax
jmp 0x402bbc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402c44
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
push ecx
push 0
push 0
push str.FRIENDLYNAME
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
jne 0x402bef
mov eax, dword [esp + 0x20]
lea ecx, [eax + 0x2c]
jmp 0x402c36
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
push edx
push 0
push 0
push str.PortName
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x402c2f
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
push edx
push 0
push 0
push str.DeviceDesc
push eax
mov dword [esp + 0x28], ebp
call edi
mov ecx, dword [esp + 0x20]
add ecx, 0x2c
mov eax, dword [ecx + 8]
lea edx, [esp + 0x4c]
push edx
push eax
call fcn.0041090a
mov eax, dword [esp + 0x18]
mov esi, dword [0x42b564]
inc eax
mov dword [esp + 0x18], eax
jmp 0x402a03
inc dword [esp + 0x24]
jmp 0x4029c4
mov ecx, dword [esp + 0x1c]
mov esi, dword [0x42b558]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call esi
mov eax, dword [esp + 0x30]
push eax
call esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x854], 0xffffffff
call fcn.00414f8b
pop edi
jmp 0x402ca9
lea ecx, [esp + 0x30]
mov dword [esp + 0x850], 0xffffffff
call fcn.00414f8b
xor eax, eax
mov ecx, dword [esp + 0x848]
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x848
ret 4