Function at 0x412540
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x436591
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x4540d0]
push ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x138]
xor ebx, ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [ecx + 8]
cmp eax, ebx
jle 0x41279d
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, 0x100
mov edx, dword [esp + 0x144]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
lea edx, [eax + ecx*4]
lea eax, [esp + 0x30]
push edx
push str.Enum_
push eax
call fcn.0042bb13
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebx
push edx
push reloc.WSOCK32.dll_bind
mov byte [esp + 0x150], 1
call ebp
cmp eax, ebx
jne 0x41276f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.Class
push eax
mov dword [esp + 0x28], edi
call esi
cmp eax, ebx
jne 0x412764
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x28]
call fcn.0042b993
mov edx, dword [esp + 0x24]
push str.MODEM
push edx
call fcn.00416a17
add esp, 8
test eax, eax
jne 0x412764
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], edi
mov edx, dword [eax + 4]
inc edx
mov dword [eax + 4], edx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.DeviceDesc
push eax
call esi
test eax, eax
jne 0x412671
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [edx + 8]
call fcn.0042b993
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.Driver
push eax
mov dword [esp + 0x28], edi
call esi
cmp eax, ebx
jne 0x412764
mov ecx, dword [0x4540d0]
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x34]
lea eax, [esp + 0x28]
push edx
push str.SystemCurrentControlSetServicesClass_s
push eax
mov byte [esp + 0x148], 2
call fcn.00426a41
mov edx, dword [esp + 0x34]
add esp, 0xc
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], edi
push ecx
push 1
push ebx
push edx
push reloc.WSOCK32.dll_bind
call ebp
cmp eax, ebx
jne 0x412753
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.DriverDesc
push eax
mov dword [esp + 0x28], edi
call esi
test eax, eax
jne 0x412713
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [edx + 0x10]
call fcn.0042b993
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.ProviderName
push eax
mov dword [esp + 0x28], edi
call esi
cmp eax, ebx
jne 0x412748
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [edx + 0x14]
call fcn.0042b993
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], 1
call fcn.0042b856
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
mov byte [esp + 0x13c], bl
call fcn.0042b856
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x2c]
inc eax
mov ecx, dword [edx + 8]
mov dword [esp + 0x2c], eax
cmp eax, ecx
jl 0x41259c
pop edi
pop esi
pop ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x130], 0xffffffff
call fcn.0042b856
mov ecx, dword [esp + 0x128]
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 4