Function at 0x4164e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5ad26f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c0
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, 0x6513b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
xor ebx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x3c], ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x3ec]
cmp esi, ebx
je 0x416675
mov eax, dword [0x6754d4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x3d8], ebx
mov dword [esp + 0x14], eax
lea eax, [esi - 2]
mov byte [esp + 0x3d8], 1
cmp eax, 0xd
ja case.0x416564.9
jmp dword [eax*4 + 0x416b08]
push 0x64f6e0
lea ecx, [esp + 0x18]
call fcn.0059aec6
push 0x64f6e0
jmp 0x416625
push 0x64f6c8
lea ecx, [esp + 0x18]
call fcn.0059aec6
push 0x64f6c0
jmp 0x416625
push 0x64f668
lea ecx, [esp + 0x18]
call fcn.0059aec6
push 0x64f668
jmp 0x416625
push 0x64f688
jmp 0x416602
push 0x6513a8
lea ecx, [esp + 0x18]
call fcn.0059aec6
push 0x6513a8
jmp 0x416625
push 0x64feb8
lea ecx, [esp + 0x18]
call fcn.0059aec6
push 0x64fec4
jmp 0x416625
push 0x64fe7c
lea ecx, [esp + 0x18]
call fcn.0059aec6
push 0x65139c
jmp 0x416625
push 0x64fedc
jmp 0x416602
push 0x64fee8
lea ecx, [esp + 0x18]
call fcn.0059aec6
push 0x64fef4
jmp 0x416625
push 0x64f21c
lea ecx, [esp + 0x18]
call fcn.0059aec6
push 0x651394
lea ecx, [esp + 0x14]
call fcn.0059aec6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push eax
push ecx
lea edx, [esp + 0x258]
push 0x65136c
push edx
call fcn.0057f2ea
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x3d8], 0
call fcn.0059ad3d
lea ecx, [esp + 0x10]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.0059ad3d
jmp 0x41668f
push 0x651358
lea eax, [esp + 0x250]
push 0x651344
push eax
call fcn.0057f2ea
add esp, 0xc
lea ecx, [esp + 0x28]
xor edi, edi
push ecx
push 0x20019
push ebx
push 0x651318
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4166eb
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
lea eax, [esp + 0x2cc]
push edx
push eax
push ebx
push ebx
push 0x651308
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4166e0
mov edi, 1
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3e0]
lea ecx, [esp + 0x24c]
push eax
push ecx
push 0x10001004
lea edx, [esp + 0x4c]
push ebx
push edx
push 1
lea ecx, [esp + 0x6c]
call fcn.00593bd3
mov eax, dword [0x67a760]
cmp edi, ebx
mov dword [esp + 0x3d8], 2
mov dword [esp + 0xe0], eax
je 0x41673a
lea ecx, [esp + 0x2cc]
mov dword [esp + 0xdc], ecx
lea ecx, [esp + 0x54]
call fcn.00593d35
cmp eax, 1
je 0x41677a
lea ecx, [esp + 0x100]
mov dword [esp + 0x3d8], 3
call fcn.0059ad3d
lea ecx, [esp + 0x54]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.00596914
xor eax, eax
jmp 0x416aeb
lea edx, [esp + 0x10]
lea ecx, [esp + 0x54]
push edx
call fcn.00593e10
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3e0], 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], bx
call fcn.004028e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x3d8], 6
call fcn.0059ad3d
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
mov eax, ecx
jne 0x4167c9
lea eax, [esp + 0x20]
mov edx, 0x64efb0
test edx, edx
je 0x4168bd
cmp eax, ebx
je 0x4168bd
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x38], bx
call fcn.00401fc0
mov esi, dword [esp + 0x3e8]
mov byte [esp + 0x3d8], 7
mov ecx, esi
call fcn.00401070
push 0x64efb0
lea ecx, [esp + 0x4c]
call fcn.00401f30
mov edi, dword [esp + 0x50]
lea ecx, [esp + 0x30]
mov byte [esp + 0x3d8], 8
call fcn.00401fb0
push eax
call fcn.0057e90a
lea ebp, [eax + edi + 2]
lea ebx, [ebp + ebp]
push ebx
call fcn.005970d9
mov edi, eax
add esp, 8
test edi, edi
mov dword [esi], edi
je 0x41688a
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x30]
call fcn.00401fb0
push eax
lea ecx, [esp + 0x4c]
call fcn.00401fb0
push eax
mov eax, dword [esi]
push ebp
push eax
call fcn.0057e89a
mov ecx, dword [esi]
push ecx
call fcn.0057e90a
add esp, 0x14
mov dword [esi + 8], eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x3d8], 7
call fcn.00401070
lea ecx, [esp + 0x30]
mov byte [esp + 0x3d8], 6
call fcn.00401070
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x3ec]
xor ebx, ebx
cmp esi, ebx
jne 0x4169a0
cmp ecx, ebx
mov eax, ecx
jne 0x4168cf
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.00413350
mov esi, eax
cmp esi, 1
jne 0x416937
mov edx, dword [0x67a7c8]
mov eax, dword [0x67a770]
push 0x40
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3d8], 2
call fcn.00401070
lea ecx, [esp + 0x100]
mov dword [esp + 0x3d8], 9
call fcn.0059ad3d
lea ecx, [esp + 0x54]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.00596914
xor eax, eax
jmp 0x416aeb
jge 0x41699c
cmp dword [esp + 0x3f0], ebx
jne 0x416959
mov ecx, dword [0x67a7c8]
mov edx, dword [0x67a76c]
push 0x30
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3d8], 2
call fcn.00401070
lea ecx, [esp + 0x100]
mov dword [esp + 0x3d8], 0xa
call fcn.0059ad3d
lea ecx, [esp + 0x54]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.00596914
xor eax, eax
jmp 0x416aeb
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x6754d4]
mov dword [esp + 0x18], eax
cmp esi, 3
mov byte [esp + 0x3d8], 0xb
je 0x4169c7
cmp esi, 5
je 0x4169c7
cmp esi, 8
je 0x4169c7
mov eax, 1
jmp 0x4169c9
xor eax, eax
cmp ecx, ebx
jne 0x4169d1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push eax
push edx
push ecx
mov ecx, ebp
call fcn.004143e0
test eax, eax
jne 0x4169f1
push 0x650f08
lea ecx, [esp + 0x1c]
call fcn.0059aec6
xor edi, edi
cmp esi, 2
jne 0x416a0c
mov eax, dword [esp + 0x18]
mov ecx, ebp
push eax
push 9
call fcn.00414280
test eax, eax
je 0x416a16
jmp 0x416a11
cmp esi, 0xf
jne 0x416a16
mov edi, 1
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
cmp eax, ebx
jne 0x416a26
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push edi
push edx
push eax
push esi
mov ecx, ebp
call fcn.00413ec0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x416a93
lea ecx, [esp + 0x18]
mov byte [esp + 0x3d8], 6
call fcn.0059ad3d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3d8], 2
call fcn.00401070
lea ecx, [esp + 0x100]
mov dword [esp + 0x3d8], 0xc
call fcn.0059ad3d
lea ecx, [esp + 0x54]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.00596914
xor eax, eax
jmp 0x416aeb
mov ecx, dword [esp + 0x3e4]
mov byte [esp + 0x3d8], 6
mov dword [ecx], eax
lea ecx, [esp + 0x18]
call fcn.0059ad3d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3d8], 2
call fcn.00401070
lea ecx, [esp + 0x100]
mov dword [esp + 0x3d8], 0xd
call fcn.0059ad3d
lea ecx, [esp + 0x54]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.00596914
mov eax, esi
mov ecx, dword [esp + 0x3d0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3cc
ret 0x14