Function at 0x40ead0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x80]
push ebp
mov ebp, dword [esp + 0x78]
push esi
lea edx, [esp + 0x7c]
push edi
xor esi, esi
push edx
push 0x20019
mov dword [ebp], esi
push esi
mov dword [eax], esi
push 0x6bd038
mov dword [ecx], esi
push reloc.WS2_32.dll_bind
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ebe2
mov ecx, 0x19
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x8c], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push esi
push 0x6bd028
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ebc8
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005de150
add esp, 8
test eax, eax
je 0x40eb77
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005de3d3
add esp, 4
test eax, eax
je 0x40ebc8
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40eb99
mov dword [ebx], 1
jmp 0x40ebc8
cmp eax, 0x1a
jle 0x40ebad
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40ebc8
cmp eax, 7
jle 0x40ebc1
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40ebc8
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40ebe2
mov dword [esp + 0x10], 1
lea edx, [esp + 0x80]
xor esi, esi
push edx
push 0x20019
push esi
push 0x6bd0e8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40eccc
mov ecx, 0x19
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x8c], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push esi
push 0x6bd028
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ecb2
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005de150
add esp, 8
test eax, eax
je 0x40ec61
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005de3d3
add esp, 4
test eax, eax
je 0x40ecb2
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40ec83
mov dword [ebx], 1
jmp 0x40ecb2
cmp eax, 0x1a
jle 0x40ec97
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40ecb2
cmp eax, 7
jle 0x40ecab
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40ecb2
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40eccc
mov dword [esp + 0x10], 1
lea edx, [esp + 0x80]
xor esi, esi
push edx
push 0x20019
push esi
push 0x6bd0c0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40edb6
mov ecx, 0x19
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x8c], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push esi
push 0x6bd028
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ed9c
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005de150
add esp, 8
test eax, eax
je 0x40ed4b
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005de3d3
add esp, 4
test eax, eax
je 0x40ed9c
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40ed6d
mov dword [ebx], 1
jmp 0x40ed9c
cmp eax, 0x1a
jle 0x40ed81
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40ed9c
cmp eax, 7
jle 0x40ed95
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40ed9c
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40edb6
mov dword [esp + 0x10], 1
lea edx, [esp + 0x80]
xor esi, esi
push edx
push 0x20019
push esi
push 0x6bd0a4
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40eea0
mov ecx, 0x19
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x8c], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push esi
push 0x6bd028
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ee86
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005de150
add esp, 8
test eax, eax
je 0x40ee35
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005de3d3
add esp, 4
test eax, eax
je 0x40ee86
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40ee57
mov dword [ebx], 1
jmp 0x40ee86
cmp eax, 0x1a
jle 0x40ee6b
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40ee86
cmp eax, 7
jle 0x40ee7f
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40ee86
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40eea0
mov dword [esp + 0x10], 1
mov edi, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
push ebp
push 0x20019
push 0x6bd078
call fcn.0040eff0
add esp, 0x1c
test eax, eax
je 0x40eed5
mov dword [esp + 0x10], 1
call fcn.00445c70
test eax, eax
je 0x40efce
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
push ebp
push 0x20119
push 0x6bd038
call fcn.0040eff0
add esp, 0x1c
test eax, eax
je 0x40ef09
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
push esi
push ebp
push 0x20119
push 0x6bd0e8
call fcn.0040eff0
add esp, 0x1c
test eax, eax
je 0x40ef30
mov dword [esp + 0x10], 1
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
push ebp
push 0x20119
push 0x6bd05c
call fcn.0040eff0
add esp, 0x1c
test eax, eax
je 0x40ef57
mov dword [esp + 0x10], 1
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
push ebp
push 0x20119
push 0x6bd0c0
call fcn.0040eff0
add esp, 0x1c
test eax, eax
je 0x40ef7e
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
push esi
push ebp
push 0x20119
push 0x6bd0a4
call fcn.0040eff0
add esp, 0x1c
test eax, eax
je 0x40efa5
mov dword [esp + 0x10], 1
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
push ebp
push 0x20119
push 0x6bd078
call fcn.0040eff0
add esp, 0x1c
test eax, eax
je 0x40efce
mov dword [esp + 0x10], 1
jmp 0x40efd6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40efe6
cmp dword [ebx], 0
jne 0x40efe2
call fcn.0040e920
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret