Function at 0x413770
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5aceed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
mov eax, dword [0x6754d4]
mov dword [esp + 0x2c0], ebx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x650fcc
mov ecx, esi
mov byte [esp + 0x2cc], 1
mov byte [esi + 0x5e], bl
call fcn.004134d0
test eax, eax
je 0x413804
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push 9
call fcn.00414280
test eax, eax
je 0x4137ef
mov byte [esi + 0x5e], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x4137fb
lea eax, [esp + 0x18]
xor ecx, ecx
push ebx
mov cl, byte [esi + 0x5e]
push ecx
jmp 0x41382c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x650fa4
mov ecx, esi
call fcn.004134d0
test eax, eax
je 0x41383b
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x41382a
lea eax, [esp + 0x18]
push ebx
push ebx
mov edx, dword [esp + 0x18]
mov ecx, esi
push edx
push eax
push 2
call fcn.00413ec0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x6507f4
mov ecx, esi
call fcn.004134d0
test eax, eax
je 0x413872
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x413861
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push edx
push eax
push 4
mov ecx, esi
call fcn.00413ec0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x650854
mov ecx, esi
call fcn.004134d0
test eax, eax
je 0x4138a9
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x413898
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push edx
push eax
push 5
mov ecx, esi
call fcn.00413ec0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x650674
mov ecx, esi
call fcn.004134d0
test eax, eax
je 0x4138e0
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x4138cf
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push edx
push eax
push 5
mov ecx, esi
call fcn.00413ec0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x650f80
mov ecx, esi
call fcn.004134d0
test eax, eax
je 0x413917
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x413906
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push edx
push eax
push 8
mov ecx, esi
call fcn.00413ec0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x650f5c
mov ecx, esi
call fcn.004134d0
test eax, eax
je 0x41394e
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x41393d
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push edx
push eax
push 0xb
mov ecx, esi
call fcn.00413ec0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x650f40
mov ecx, esi
call fcn.004134d0
test eax, eax
je 0x413986
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x413974
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x10]
push ebx
push 1
push edx
push eax
push 0xf
mov ecx, esi
call fcn.00413ec0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x24]
push eax
push 0xf003f
push ebx
push 0x650f28
push reloc.WSOCK32.dll_bind
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413bf6
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x4c]
push ecx
push edx
push ebx
push ebx
push 0x650664
push eax
mov dword [esp + 0x38], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413beb
mov ecx, dword [0x6754d4]
mov dword [esp + 0x40], ecx
lea edx, [esp + 0x4c]
lea eax, [esp + 0x40]
push edx
push 0x650f00
push eax
mov byte [esp + 0x2cc], 2
call fcn.00593b08
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
push 0xf003f
push ebx
push edx
push eax
call ebp
test eax, eax
jne 0x413bda
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x20]
lea edx, [esp + 0xb0]
push ecx
push edx
push ebx
push ebx
push 0x650638
push eax
mov dword [esp + 0x38], 0x208
call edi
test eax, eax
jne 0x413bcf
mov ecx, 0x650f18
test ecx, ecx
je 0x413b60
lea edx, [esp + 0xb0]
test edx, edx
je 0x413b60
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.00401fc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c0], 3
call fcn.00401070
push ebx
push 0x650f18
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x40], bx
call fcn.004028e0
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x28]
mov byte [esp + 0x2c0], 4
call fcn.00401fb0
push eax
call fcn.0057e90a
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005970d9
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x413b2e
mov ecx, ebp
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 + 0x28]
call fcn.00401fb0
push eax
lea ecx, [esp + 0x38]
call fcn.00401fb0
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.0057e89a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0057e90a
add esp, 0x14
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c0], 3
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x2c0], 2
call fcn.00401070
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x44]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x10]
push edx
push 0x64efb0
push eax
call fcn.00593b08
mov ecx, dword [esp + 0x1c]
push 0x20
push ecx
call fcn.0057e940
add esp, 0x14
cmp eax, ebx
je 0x413bb2
mov byte [eax], bl
mov edx, dword [esp + 0x10]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x2e
jne 0x413bac
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.0059b1a9
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x413bbe
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push edx
push eax
push 6
mov ecx, esi
call fcn.00413ec0
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c0], 1
call fcn.0059ad3d
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x24]
push edx
push 0xf003f
push ebx
push 0x650734
push reloc.WSOCK32.dll_accept
call ebp
test eax, eax
jne 0x413e7b
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
lea ecx, [esp + 0xb0]
push eax
push ecx
push ebx
push ebx
mov ebp, 0x208
push 0x650714
push edx
mov dword [esp + 0x38], ebp
call edi
test eax, eax
je 0x413e70
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
lea ecx, [esp + 0xb0]
push eax
push ecx
push ebx
push ebx
push 0x6506f0
push edx
mov dword [esp + 0x38], ebp
call edi
test eax, eax
je 0x413c8d
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
lea ecx, [esp + 0xb0]
push eax
push ecx
push ebx
push ebx
push 0x6506d0
push edx
mov dword [esp + 0x38], ebp
call edi
test eax, eax
jne 0x413e70
jmp 0x413ce9
lea eax, [esp + 0xb0]
push 0x6506c8
push eax
call fcn.0057f137
add esp, 8
test eax, eax
je 0x413cc2
lea ecx, [esp + 0xb0]
push 0x5c
push ecx
call fcn.0057e85a
add esp, 8
cmp eax, ebx
je 0x413ce9
mov word [eax + 2], bx
jmp 0x413ce9
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x20]
lea eax, [esp + 0xb0]
push edx
push eax
push ebx
push ebx
push 0x6506d0
push ecx
mov dword [esp + 0x38], ebp
call edi
test eax, eax
jne 0x413e70
lea edx, [esp + 0xb0]
push edx
call fcn.0057e90a
add esp, 4
cmp word [esp + eax*2 + 0xae], 0x5c
je 0x413d19
lea eax, [esp + 0xb0]
push 0x64f038
push eax
call fcn.0057ea80
add esp, 8
mov ecx, 0x650f0c
test ecx, ecx
je 0x413e27
lea edx, [esp + 0xb0]
test edx, edx
je 0x413e27
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.00401fc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c0], 5
call fcn.00401070
push ebx
push 0x650f0c
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x40], bx
call fcn.004028e0
mov eax, dword [esp + 0x28]
mov byte [esp + 0x2c0], 6
cmp eax, ebx
jne 0x413d94
lea eax, [esp + 0x2c]
mov esi, dword [esp + 0x3c]
push eax
call fcn.0057e90a
lea ebp, [eax + esi + 2]
lea esi, [ebp + ebp]
push esi
call fcn.005970d9
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x413e01
mov ecx, esi
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
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x413dd7
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
jne 0x413de3
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
push ecx
push ebp
push eax
call fcn.0057e89a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0057e90a
add esp, 0x14
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c0], 5
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x2c0], 1
call fcn.00401070
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x413e33
lea eax, [esp + 0x18]
lea edx, [esp + 0x10]
push ebx
push edx
push eax
mov ecx, esi
call fcn.004143e0
test eax, eax
jne 0x413e53
push 0x650f08
lea ecx, [esp + 0x14]
call fcn.0059aec6
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x413e5f
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
push eax
push 3
mov ecx, esi
call fcn.00413ec0
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c0], bl
call fcn.0059ad3d
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x2b8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2b4
ret