Function at 0x404400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea025
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5383c4]
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 ebx, dword [ebp + 0xc]
mov eax, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
cmp dword [ebx + 0x14], 0x10
jb 0x40443e
mov eax, dword [ebx]
push dword [ebx + 0x10]
push eax
call fcn.00405fd0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x404451
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.00405fd0
cmp dword [esi + 0x14], 0x10
jb 0x404462
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404480
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x68]
call fcn.00403ee0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x50], reloc.WS2_32.dll_accept
call fcn.004034b0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
cmp ecx, 0x10
jb 0x4044f7
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4044ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404841
push ecx
push edx
call fcn.004bec6b
add esp, 8
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x54], eax
xor esi, esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x7c], eax
test edx, edx
je 0x404576
cmp edx, eax
jbe 0x404832
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x40453b
mov edx, dword [edi]
add eax, edx
cmp ecx, dword [ebp - 0x78]
je 0x40454c
mov al, byte [eax]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x58], ecx
jmp 0x40455f
push eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004048a0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x7c]
mov edx, dword [edi + 0x10]
inc eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x7c], eax
cmp edx, eax
ja 0x404531
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx + 0x10]
xor edi, edi
test eax, eax
je 0x4045c5
xor ecx, ecx
cmp eax, edi
jbe 0x404832
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x404593
mov eax, dword [ebx]
add eax, edi
cmp esi, ecx
je 0x4045a3
mov al, byte [eax]
mov byte [esi], al
inc esi
mov dword [ebp - 0x18], esi
jmp 0x4045b8
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004048a0
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [ebx + 0x10]
inc edi
cmp eax, edi
ja 0x404589
mov edi, dword [ebp - 0x1c]
jmp 0x4045c7
xor edi, edi
cmp dword [ebp - 0x34], 0
mov edx, 0xf
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x28], 0x65646f63
mov byte [ebp - 0x24], 0
jne 0x404675
cmp byte [ebp - 0x30], 0
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x34]
je 0x404648
cmp dword [ebp - 0x38], 0x10
push eax
cmovae ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
or eax, 0x20019
push eax
push 0
push ecx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404672
mov ebx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4046a3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404699
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404837
jmp 0x404699
cmp dword [ebp - 0x38], 0x10
push 0
cmovae ecx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x2c]
push 0
or eax, 0x2001f
push eax
push 0
push 0
push 0
push ecx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404619
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x6c]
sub ecx, ebx
push ecx
push ebx
push 3
cmp edx, 0x10
push 0
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40461c
push ecx
push edx
call fcn.004bec6b
add esp, 8
cmp dword [ebp - 0x34], 0
mov ecx, 0xf
mov edx, 0x68746170
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x28], edx
mov byte [ebp - 0x24], 0
jne 0x404724
cmp byte [ebp - 0x30], 0
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x34]
je 0x4046f4
cmp dword [ebp - 0x38], 0x10
push eax
cmovae ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
or eax, 0x20019
push eax
push 0
push ecx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40471e
jmp 0x40473f
cmp dword [ebp - 0x38], 0x10
push 0
cmovae ecx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x2c]
push 0
or eax, 0x2001f
push eax
push 0
push 0
push 0
push ecx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40473f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
sub esi, edi
lea eax, [ebp - 0x28]
push esi
push edi
push 3
cmp ecx, 0x10
push 0
cmovae eax, edx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x404773
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404769
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40483c
push ecx
push edx
call fcn.004bec6b
add esp, 8
test edi, edi
je 0x4047a4
mov ecx, dword [ebp - 0x74]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x40479a
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404841
push ecx
push edi
call fcn.004bec6b
add esp, 8
test ebx, ebx
je 0x4047d1
mov ecx, dword [ebp - 0x78]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x4047c7
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404841
push ecx
push ebx
call fcn.004bec6b
add esp, 8
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4047e6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x404816
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40480c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404841
push ecx
push edx
call fcn.004bec6b
add esp, 8
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.004bebdd
mov esp, ebp
pop ebp
ret
call fcn.00403750
call fcn.004c8fd6
call fcn.004c8fd6
call fcn.004c8fd6
int3