Function at 0x45fe40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb016
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x654c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], ecx
lea eax, [ebp - 0x430]
mov dword [ebp - 0x438], ecx
push eax
push 0x20019
push 0
push 0x641fcc
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
xor eax, eax
mov dword [ebp - 0x418], 7
movups xmmword [ebp - 0x42c], xmm0
mov word [ebp - 0x42c], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x450]
push 3
push 0x642008
movups xmmword [ebp - 0x450], xmm0
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], eax
call fcn.004698e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x468]
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x458], 0
push 0x642010
movups xmmword [ebp - 0x468], xmm0
mov dword [ebp - 0x454], 0
call fcn.004698e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x450]
cmp dword [ebp - 0x43c], 7
mov eax, dword [ebp - 0x430]
cmova ecx, dword [ebp - 0x450]
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x440]
cmp eax, edx
ja 0x45ff80
lea esi, [eax + eax]
mov dword [ebp - 0x41c], eax
cmp edx, 7
lea edi, [ebp - 0x42c]
push esi
cmova edi, dword [ebp - 0x42c]
push ecx
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x45ff9a
push ecx
mov byte [ebp - 0x414], 0
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x414]
push eax
call fcn.004695d0
cmp dword [ebp - 0x454], 7
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x414], 0x400
push ecx
push 0
lea eax, [ebp - 0x468]
cmova eax, dword [ebp - 0x468]
push 0
push eax
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46004f
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ffe4
mov eax, dword [ebp - 0x418]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x46002f
cmp eax, 7
mov dword [ebp - 0x41c], ecx
lea esi, [ecx + ecx]
push esi
lea eax, [ebp - 0x410]
lea edi, [ebp - 0x42c]
cmova edi, dword [ebp - 0x42c]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x46004f
lea eax, [ebp - 0x410]
mov byte [ebp - 0x438], 0
push eax
push dword [ebp - 0x438]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.004695d0
lea ecx, [ebp - 0x468]
call fcn.004681e0
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0
call fcn.004681e0
cmp dword [ebp - 0x418], 7
lea edx, [ebp - 0x42c]
mov eax, dword [ebp - 0x41c]
lea edi, [ebp - 0x42c]
cmova edx, dword [ebp - 0x42c]
xorps xmm0, xmm0
cmova edi, dword [ebp - 0x42c]
lea edx, [edx + eax*2]
mov eax, dword [ebp - 0x434]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
cmp edi, edx
jne 0x4600c7
mov byte [eax], 0
jmp 0x4601b3
sub edx, edi
sar edx, 1
mov dword [ebp - 0x414], edx
cmp edx, 0x7fffffff
ja 0x4601df
mov esi, 0xf
cmp edx, esi
jbe 0x460174
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x460128
mov eax, bind
mov esi, bind
add eax, 0x23
push eax
call fcn.005c56dc
add esp, 4
test eax, eax
je 0x46014a
mov edx, dword [ebp - 0x414]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x434]
jmp 0x46016f
mov ecx, 0x16
cmp esi, ecx
cmovb esi, ecx
lea ecx, [esi + 1]
cmp ecx, 0x1000
jb 0x460150
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x4601e4
jmp 0x460104
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test ecx, ecx
je 0x46016d
push ecx
call fcn.005c56dc
mov edx, dword [ebp - 0x414]
mov ecx, eax
mov eax, dword [ebp - 0x434]
add esp, 4
jmp 0x46016f
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 0x14], esi
mov dword [ebp - 0x414], eax
mov ecx, eax
cmp esi, 0xf
jbe 0x460189
mov ecx, dword [eax]
mov dword [ebp - 0x414], ecx
mov esi, edx
test edx, edx
je 0x4601a6
nop
mov al, byte [edi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edi, [edi + 2]
sub esi, 1
jne 0x460190
mov eax, dword [ebp - 0x434]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x414]
mov byte [eax + edx], 0
lea ecx, [ebp - 0x42c]
call fcn.004681e0
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c56ce
mov esp, ebp
pop ebp
ret
call fcn.0044e660
call fcn.0044e560
int3