Function at 0x100023b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100636b0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x228
mov eax, dword [0x1007f018]
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
jmp 0x100023f1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], closesocket
mov dword [ebp - 0x1c], 0
je 0x10002419
add bh, al
inc ebp
in al, dx
add al, byte [eax]
add byte [eax + 0xe445c7], al
add byte [eax], al
add byte [edx + ecx + 0x75], dh
or bl, ch
jmp 0x10002488
jne 0x10002419
jmp 0x100023fe
je 0x1000241c
jne 0x1000241c
jmp 0x10002404
jmp 0x10002413
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x10002433
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x1000243a
xor eax, eax
jmp 0x100025c0
mov edx, dword [ebp + 8]
push edx
push str.SYSTEMCurrentControlSetServices_sParameters
push 0x1f4
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x10
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10002495
mov dword [ebp - 0x230], 0x1007d020
push 0x1007d8e0
lea ecx, [ebp - 0x230]
push ecx
call sub.MSVCR80.dll__CxxThrowException
adc byte [ebp - 0x22f73], cl
call dword [ecx - 0x18]
xchg ecx, eax
adc byte [esi], al
add bh, al
test eax, ebx
std
invalid
mov dword [ebp - 0x228], 0x104
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x224]
push ecx
push 0
push str.program
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 0
je 0x100024f0
mov dword [ebp - 0x234], str.RegQueryValueEx_Parametersprogram_
push 0x1007d8e0
lea ecx, [ebp - 0x234]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x228], 4
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0
push str.Interactive
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 0
je 0x10002554
mov dword [ebp - 0x238], str.RegQueryValueEx_ParametersInteractive_
push 0x1007d8e0
lea edx, [ebp - 0x238]
push edx
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x10002584
mov dword [ebp - 4], 0xffffffff
jmp 0x1000259a
push dword [ebp + 9]
je 0x100025a1
mov eax, dword [ebp - 0x14]
inc ebp
in al, dx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x100025b0
inc eax
push es
adc byte [edx + ecx + 0x75], dh
or bl, ch
jmp 0x1000261f
jne 0x100025b0
jmp 0x10002595
je 0x100025b3
jne 0x100025b3
jmp 0x1000259b
jmp 0x100025aa
clc
nop
jae 0x100025bd
call 0xf045b1a8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.10009090
mov esp, ebp
pop ebp
ret