Function at 0x403ec0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x61c
mov eax, 0x200
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0xf003f
push 0
push str.SystemCurrentControlSetControlClass4D36E96D_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [esp + 0x2c], 0
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40400d
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push edx
push eax
push 0
push ecx
mov edi, 1
call ebp
test eax, eax
jne 0x404002
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push edx
push 0xf003f
lea eax, [esp + 0x34]
push esi
push eax
push ecx
call ebx
test eax, eax
jne 0x403f9f
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
lea eax, [esp + 0x42c]
push edx
push eax
push esi
push esi
push str.DriverDesc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403f94
lea edx, [esp + 0x42c]
push str.Intel_R__PRO_100_Modem56_CardBus_II
push edx
call fcn.00404410
add esp, 8
test eax, eax
jne 0x403f94
mov esi, 1
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [esp + 0x14], 0x200
je 0x403fda
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push 0
push ecx
push edx
call fcn.00404150
add esp, 0xc
test eax, eax
je 0x403fcd
mov ecx, dword [esp + 0x18]
inc ecx
dec edi
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x2c]
push eax
call fcn.00403260
add esp, 4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
mov eax, edi
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
inc edi
call ebp
test eax, eax
je 0x403f36
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUnimodemDeviceSpecific
push 0x80000002
call ebx
test eax, eax
jne 0x404129
lea edx, [esp + 0x24]
lea ecx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x14]
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
push ecx
push 0
push edx
mov ebx, 1
call ebp
test eax, eax
jne 0x40411e
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x22c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Intel_R__PRO_100_Modem56_CardBus_II
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x230]
push ecx
call fcn.00404670
mov edx, eax
mov edi, 0x40beec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Intel_R__PRO_100_Modem56_CardBus_II
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x238]
push ecx
call fcn.00404410
add esp, 0x10
test eax, eax
jne 0x4040ee
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
call fcn.00404150
add esp, 0xc
test eax, eax
je 0x40411e
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
mov eax, ebx
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
mov dword [esp + 0x34], 0x200
inc ebx
call ebp
test eax, eax
je 0x404055
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call fcn.00403260
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61c
ret