Function at 0x405940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ddb0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x44a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov esi, 0x453770
sub esi, edx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [edx + esi - 1], al
test al, al
jne 0x405975
mov ebx, 0x453770
lea ecx, [ebx - 1]
nop word [eax + eax]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x405990
mov eax, dword [0x440d44]
mov dword [ecx], eax
mov ax, word [0x440d48]
mov word [ecx + 4], ax
mov al, byte [0x440d4a]
push 0x440d4c
push 0x440bac
mov byte [ecx + 6], al
call fcn.00410320
add esp, 8
test eax, eax
je 0x405a36
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x40
push eax
push 0x20019
push 0
push 0x440d54
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405a36
lea eax, [ebp - 0x2c]
push eax
push 0x453548
push 0
push 0
push 0x440d50
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405a36
mov edx, 0x453548
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x405a13
sub edx, esi
lea edi, [ebx - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405a20
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00401210
mov dword [ebp - 4], 0
lea edi, [ebx - 1]
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x405a50
mov eax, dword [0x440d68]
lea ecx, [ebp - 0x44]
mov dword [edi], eax
call fcn.004012a0
mov edx, eax
mov esi, eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x405a70
sub edx, esi
lea edi, [ebx - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405a80
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx - 1]
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x405aa0
mov eax, dword [str.event]
mov edx, 1
mov dword [ecx], eax
mov eax, dword [0x440d70]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x28]
call fcn.00405920
mov edx, eax
cmp dword [edx + 0x14], 0x10
jb 0x405ad0
mov edx, dword [edx]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x405ad2
sub edx, esi
dec ebx
nop dword [eax]
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x405ae0
mov eax, dword [ebp - 0x14]
mov ecx, edx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp eax, 0x10
jb 0x405b0d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401eb0
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x30], esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x405b2d
mov eax, dword [edx]
jmp 0x405b2f
mov eax, edx
mov byte [eax], 0
cmp byte [0x453770], 0
jne 0x405b3f
xor ecx, ecx
jmp 0x405b50
mov ecx, 0x453770
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405b47
sub ecx, esi
push ecx
push 0x453770
mov ecx, edx
call fcn.00401ab0
sub esp, 0x18
mov byte [ebp - 4], 1
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x405b7e
mov eax, dword [edx]
jmp 0x405b80
mov eax, edx
mov ebx, dword [ebp - 0x34]
mov byte [eax], 0
cmp byte [ebx], 0
jne 0x405b8f
xor ecx, ecx
jmp 0x405b9d
mov ecx, ebx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405b94
sub ecx, esi
push ecx
push ebx
mov ecx, edx
call fcn.00401ab0
mov byte [ebp - 4], 0
call fcn.00407e70
mov esi, eax
add esp, 0x30
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x405bc4
push eax
call fcn.0040cca7
add esp, 4
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x405bd4
push eax
call fcn.0040cca7
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cc96
mov esp, ebp
pop ebp
ret 8