Function at 0x401dd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x534
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x35]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x3c], bl
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x34e]
push ebx
push ecx
mov word [esp + 0x354], bx
call sub.MSVCR80.dll_memset
push 0x206
lea edx, [esp + 0x152]
push ebx
mov esi, 0x104
push edx
mov dword [esp + 0x48], esi
mov word [esp + 0x158], bx
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x570]
add esp, 0x24
cmp eax, ebx
mov dword [esp + 0x28], esi
je 0x402134
mov edi, dword [esp + 0x550]
cmp edi, ebx
je 0x402134
mov ebp, dword [esp + 0x548]
cmp ebp, ebx
je 0x402134
cmp dword [esp + 0x558], ebx
je 0x402134
push eax
push ebp
push 0x40318c
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push esi
push eax
call dword [sym.imp.MSVCR80.dll__snprintf_s]
add esp, 0x18
cmp dword [ebp + 0x104], 1
jne 0x401ec1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x340]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00402380
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x144]
push edx
push edi
call fcn.00402380
jmp 0x401eeb
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x340]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00402470
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x144]
push ecx
push edi
call fcn.00402470
lea edx, [esp + 0x28]
add esp, 0x18
push edx
call fcn.00402520
or eax, 1
push eax
push ebx
lea eax, [esp + 0x348]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x402127
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
lea eax, [esp + 0x144]
push eax
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x40211c
cmp dword [esp + 0x1c], 7
je 0x401f77
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
add esp, 0x534
ret
mov eax, dword [esp + 0x14]
add eax, 4
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x401fad
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x534
ret
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push esi
lea edx, [esp + 0x24]
push edx
push ebx
lea eax, [esp + 0x144]
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
mov edi, eax
push edx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x401ff4
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x534
ret
mov eax, dword [esp + 0x14]
shr eax, 1
jne 0x402001
mov word [esi], bx
jmp 0x40201f
cmp word [esi + eax*2 - 2], bx
je 0x40200f
mov word [esi + eax*2 + 2], bx
jmp 0x40201b
cmp eax, 1
jbe 0x40201f
cmp word [esi + eax*2 - 4], bx
je 0x40201f
mov word [esi + eax*2], bx
mov ecx, dword [ebp + 0x104]
lea eax, [esp + 0x20]
push eax
push ecx
push esi
lea ebx, [esp + 0x24]
call fcn.00401c40
mov ebp, dword [esp + 0x560]
add esp, 0xc
test ebp, ebp
je 0x4020e4
mov edx, dword [esp + 0x558]
mov eax, dword [edx]
test eax, eax
je 0x4020e4
cmp eax, dword [esp + 0x18]
jb 0x4020e4
mov ecx, dword [esp + 0x560]
test ecx, ecx
mov edi, dword [esp + 0x55c]
je 0x4020af
mov edx, dword [ecx]
mov ebx, dword [esp + 0x20]
cmp edx, ebx
jb 0x402086
test edx, edx
jbe 0x4020af
test edi, edi
jne 0x4020af
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x558]
mov dword [edx], eax
push esi
mov dword [ecx], ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x7a
pop ebx
add esp, 0x534
ret
neg ecx
sbb ecx, ecx
and ecx, edi
push ecx
mov ecx, dword [esp + 0x54c]
mov edx, dword [ecx + 0x104]
push ebp
push edx
push esi
call fcn.00401cd0
push esi
call dword [sym.imp.MSVCR80.dll_free]
mov eax, dword [esp + 0x40]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x534
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x558]
mov dword [ecx], eax
mov eax, dword [esp + 0x560]
test eax, eax
je 0x402102
mov edx, dword [esp + 0x20]
mov dword [eax], edx
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x7a
pop ebx
add esp, 0x534
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x534
ret
pop edi
pop esi
pop ebp
mov eax, 0x57
pop ebx
add esp, 0x534
ret