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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4129c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov al, byte [ebp + 0xb]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x70], al
call fcn.00405990
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
push ecx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318_
push 0x80000002
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402e56
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x402e3f
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318_
push str.RegOpenKey__s__FAILED
push 0x2e7
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x18
jmp 0x402e41
xor eax, eax
lea edx, [ebp - 0x44]
push 0x414618
push edx
mov byte [ebp - 4], 0
mov dword [ebp - 0x44], eax
call fcn.0040a1a6
push ebx
push ebx
mov ecx, dword [ebp - 0x30]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x402ec1
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x402eaa
push str.RegQueryInfoKey_FAILED
push 0x2ed
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x14
jmp 0x402eac
xor eax, eax
lea edx, [ebp - 0x48]
push 0x414618
push edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x48], eax
call fcn.0040a1a6
mov eax, dword [ebp - 0x34]
inc eax
push eax
mov dword [ebp - 0x34], eax
call fcn.0040a116
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x2c], esi
jne 0x402f2a
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x402f13
mov ecx, dword [ebp - 0x34]
push ecx
push esi
push str._s__new_char__d___FAILED
push 0x2f1
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x1c
jmp 0x402f15
xor eax, eax
lea edx, [ebp - 0x4c]
push 0x414618
push edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x4c], eax
call fcn.0040a1a6
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x403665
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x18]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40364e
push ebx
lea edx, [ebp - 0x20]
push ebx
mov eax, dword [ebp - 0x18]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x402f8f
mov ecx, dword [ebp - 0x18]
push ecx
call edi
jmp 0x40364e
mov eax, dword [ebp - 0x20]
inc eax
push eax
mov dword [ebp - 0x20], eax
call fcn.0040a116
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x402ff8
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x402fe1
mov edx, dword [ebp - 0x20]
push edx
push esi
push str._s__new_char__d___FAILED
push 0x301
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x1c
jmp 0x402fe3
xor eax, eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push 0x414618
push eax
mov byte [ebp - 4], 2
call fcn.0040a1a6
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x18]
push eax
push ebx
push str.ProviderName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40364e
cmp dword [ebp - 0x1c], 1
je 0x403030
mov edx, dword [ebp - 0x18]
push edx
call edi
jmp 0x40364e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x70]
push ebx
call fcn.004057a0
test al, al
je 0x403070
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x6c]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x68], ebx
mov byte [ecx + ebx], 0
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push esi
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x18]
push ecx
push 0
push str.NetCfgInstanceId
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40364e
cmp dword [ebp - 0x1c], 1
je 0x4030ad
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40364e
push 0x74
call fcn.0040a116
mov ebx, eax
add esp, 4
mov dword [ebp - 0x40], ebx
test ebx, ebx
mov byte [ebp - 4], 6
je 0x403150
push 0x404620
push 0x403bc0
push 7
push 0x10
push ebx
call fcn.0040a124
mov byte [ebp - 4], 7
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
cmp eax, 7
jge 0x40314a
mov ebx, eax
mov eax, dword [ebp - 0x40]
shl ebx, 4
add ebx, eax
mov edi, 0x418154
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov dword [ebp - 0x54], ecx
push ecx
mov ecx, ebx
call fcn.004057a0
test al, al
je 0x40313e
mov eax, dword [ebp - 0x54]
mov edi, dword [ebx + 4]
mov ecx, eax
mov esi, 0x418154
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x38], eax
jmp 0x4030e7
mov byte [ebx + 0x70], 0
jmp 0x403152
xor ebx, ebx
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
or ecx, 0xffffffff
xor eax, eax
add ebx, 0x60
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x54], ecx
push ecx
mov ecx, ebx
call fcn.004057a0
test al, al
je 0x40319e
mov eax, dword [ebp - 0x54]
mov edi, dword [ebx + 4]
mov esi, dword [ebp - 0x2c]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, edx
mov ebx, ecx
push 1
push ebx
mov ecx, edx
mov dword [ebp - 0x54], esi
call fcn.004057a0
test al, al
je 0x4031e7
mov edi, dword [esi + 4]
mov esi, dword [ebp - 0x14]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [eax + 8], ebx
mov eax, dword [eax + 4]
add eax, ebx
mov byte [eax], 0
mov edx, dword [0x413168]
mov ecx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x70]
push 0
add ecx, 0x20
push eax
call fcn.004054f0
mov ecx, dword [ebp - 0x28]
mov edi, 0x418154
xor eax, eax
push 1
lea edx, [ecx + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x54], edx
mov ebx, ecx
mov ecx, edx
push ebx
call fcn.004057a0
test al, al
je 0x40324d
mov eax, dword [ebp - 0x54]
mov ecx, ebx
mov edx, ecx
mov esi, 0x418154
mov edi, dword [eax + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 4]
mov dword [eax + 8], ebx
add ebx, ecx
mov byte [ebx], 0
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x24], eax
push esi
mov byte [esi], 0
mov eax, dword [ebp - 0x18]
push edx
push 0
push str.HubPortName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4032cb
cmp dword [ebp - 0x1c], 1
jne 0x4032cb
mov ecx, dword [ebp - 0x28]
mov edi, esi
xor eax, eax
push 1
lea ebx, [ecx + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebx
push edi
mov dword [ebp - 0x54], edi
call fcn.004057a0
test al, al
je 0x4032c8
mov eax, dword [ebx + 4]
mov ecx, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
mov byte [ebx + eax], 0
add ebx, eax
mov byte [esi], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x70]
push ebx
call fcn.004057a0
test al, al
je 0x40331a
mov edi, dword [ebp - 0x6c]
mov ecx, ebx
mov edx, ecx
mov esi, str.SYSTEMCurrentControlSetServices_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x68], ebx
mov byte [eax + ebx], 0
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x70]
push ecx
lea eax, [ebp - 0x90]
push edx
push eax
call fcn.00406dc0
add esp, 0xc
push str.ParametersTcpip
lea ecx, [ebp - 0x80]
push eax
push ecx
mov byte [ebp - 4], 8
call fcn.00406770
add esp, 0xc
mov edx, dword [0x413168]
xor edi, edi
push edx
push edi
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.004054f0
mov eax, dword [ebp - 0x7c]
cmp eax, edi
je 0x403382
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x403379
cmp al, 0xff
je 0x403379
dec al
mov byte [ecx], al
jmp 0x403382
push ecx
call fcn.00409383
add esp, 4
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], edi
cmp eax, edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
mov byte [ebp - 4], 2
je 0x4033b6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4033ad
cmp al, 0xff
je 0x4033ad
dec al
mov byte [ecx], al
jmp 0x4033b6
push ecx
call fcn.00409383
add esp, 4
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x8c], edi
cmp eax, edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
jne 0x4033d4
mov eax, 0x413184
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40362d
push edi
lea edx, [ebp - 0x1c]
push edi
mov eax, dword [ebp - 0x18]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40360f
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
jae 0x403490
push esi
call fcn.00409383
mov edx, dword [ebp - 0x1c]
lea eax, [edx + 2]
push eax
mov dword [ebp - 0x20], eax
call fcn.0040a116
mov esi, eax
add esp, 8
cmp esi, edi
mov dword [ebp - 0x14], esi
jne 0x403490
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [ebp + 8], eax
cmp eax, edi
mov byte [ebp - 4], 0xa
je 0x403479
mov ecx, dword [ebp - 0x20]
push ecx
push str.buf__new_char__d___FAILED
push 0x32b
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x18
jmp 0x40347b
xor eax, eax
lea edx, [ebp - 0x58]
push 0x414618
push edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x58], eax
call fcn.0040a1a6
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
push edx
push edi
push str.enableDHCP
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403519
cmp dword [ebp - 0x1c], 4
jne 0x403519
mov eax, dword [esi]
mov esi, 0x41616c
cmp eax, edi
jne 0x4034c9
mov esi, 0x4161b8
mov ecx, dword [ebp - 0x28]
mov edi, esi
xor eax, eax
push 1
lea edx, [ecx + 0x50]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x54], edx
mov ebx, ecx
mov ecx, edx
push ebx
call fcn.004057a0
test al, al
je 0x40350f
mov eax, dword [ebp - 0x54]
mov ecx, ebx
mov edx, ecx
mov edi, dword [eax + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 4]
mov dword [eax + 8], ebx
add ebx, ecx
mov byte [ebx], 0
mov eax, dword [ebp - 0x14]
xor edi, edi
mov esi, eax
mov byte [eax], 0
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x18]
push eax
push edi
push str.IPAddress
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403593
cmp dword [ebp - 0x1c], 7
jne 0x403593
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [edx + 0x30]
mov edi, ecx
push 1
push edi
mov ecx, ebx
mov dword [ebp - 0x54], edi
call fcn.004057a0
test al, al
je 0x40358e
mov eax, dword [ebx + 4]
mov esi, dword [ebp - 0x14]
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
mov byte [ebx + eax], 0
add ebx, eax
mov byte [esi], 0
xor edi, edi
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x18]
push eax
push edi
push str.SubnetMask
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
mov dword [ebp - 0x24], eax
jne 0x40360f
cmp dword [ebp - 0x1c], 7
jne 0x40360f
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
xor eax, eax
add edx, 0x40
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x54], edx
mov ebx, ecx
mov ecx, edx
push ebx
call fcn.004057a0
test al, al
je 0x403609
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x14]
mov ecx, ebx
mov edi, dword [eax + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 4]
mov dword [eax + 8], ebx
add ebx, ecx
mov byte [ebx], 0
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x28]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.004059e0
jmp 0x40364e
mov eax, dword [ebp - 0x28]
cmp eax, edi
mov esi, eax
je 0x40364e
push 0x404620
push 7
push 0x10
push eax
call fcn.0040985f
push esi
call fcn.00409383
add esp, 4
mov eax, dword [ebp - 0x3c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x3c], eax
xor ebx, ebx
jmp 0x402f36
push esi
call fcn.00409383
mov eax, dword [ebp - 0x14]
push eax
call fcn.00409383
mov ecx, dword [ebp - 0x30]
add esp, 8
push ecx
call edi
mov ecx, dword [ebp - 0x6c]
cmp ecx, ebx
je 0x403694
mov al, byte [ecx - 1]
test al, al
je 0x4036a5
cmp al, 0xff
je 0x4036a5
dec al
mov byte [ecx - 1], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.00409383
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret