Function at 0x4304b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x190
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x19c]
xor eax, eax
push esi
xor ebx, ebx
push edi
push 0x103
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov word [esp + 0x99], ax
mov byte [esp + 0x9b], al
lea eax, [esp + 0x9d]
push ebx
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x84], bl
mov byte [esp + 0xa4], bl
call fcn.004b6dc0
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0xf003f
push ebx
xor eax, eax
push ebx
push ebx
push 0x5168d8
mov dword [esp + 0x50], ebx
mov byte [esp + 0x84], bl
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
call fcn.00404690
add esp, 4
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [esp + 0x2c], 2
jne 0x4308cd
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
push ecx
push ebx
push ebx
push 0x5168c4
mov dword [esp + 0x28], 0x20
call fcn.00404690
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 4
push eax
push edx
call esi
test eax, eax
jne 0x4308cd
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
push ebx
push 0x5168b4
mov dword [esp + 0x28], 4
call fcn.00404690
mov edx, dword [esp + 0x24]
add esp, 4
push eax
push edx
call esi
test eax, eax
jne 0x4308cd
lea eax, [esp + 0x78]
push eax
push ebp
call fcn.004b9a67
add esp, 8
test eax, eax
jne 0x4308cd
mov ecx, dword [esp + 0x1a8]
cmp ecx, dword [esp + 0x30]
jne 0x4308cd
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x28]
movzx ecx, word [esp + 0x26]
movzx edx, word [esp + 0x24]
push eax
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x26]
push edx
movzx edx, word [esp + 0x28]
push eax
push ecx
push edx
push 0x516890
call fcn.00404690
add esp, 4
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004b79a8
add esp, 0x20
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x9c]
push edx
push ebx
push ebx
push 0x51687c
mov dword [esp + 0x28], 0x104
call fcn.00404690
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push eax
call esi
test eax, eax
jne 0x430826
push 4
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x48], bl
mov dword [esp + 0x49], eax
mov word [esp + 0x4d], ax
mov byte [esp + 0x4f], al
call fcn.004b8a4f
lea eax, [esp + 0x48]
push eax
call fcn.004b90b0
push 2
lea ecx, [esp + 0xb1]
mov esi, eax
xor eax, eax
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x60], bl
mov dword [esp + 0x61], eax
mov word [esp + 0x65], ax
mov byte [esp + 0x67], al
call fcn.004b8a4f
lea eax, [esp + 0x60]
push eax
call fcn.004b90b0
push 2
lea ecx, [esp + 0xc4]
mov ebp, eax
xor eax, eax
push ecx
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x78], bl
mov dword [esp + 0x79], eax
mov word [esp + 0x7d], ax
mov byte [esp + 0x7f], al
call fcn.004b8a4f
lea eax, [esp + 0x78]
push eax
call fcn.004b90b0
push 2
lea ecx, [esp + 0xd7]
mov dword [esp + 0x6c], eax
xor eax, eax
push ecx
lea edx, [esp + 0x94]
push edx
mov byte [esp + 0x98], bl
mov dword [esp + 0x99], eax
mov word [esp + 0x9d], ax
mov byte [esp + 0x9f], al
call fcn.004b8a4f
lea eax, [esp + 0x98]
push eax
call fcn.004b90b0
add esp, 0x40
push 2
lea ecx, [esp + 0xaa]
mov edi, eax
xor eax, eax
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x60], bl
mov dword [esp + 0x61], eax
mov word [esp + 0x65], ax
mov byte [esp + 0x67], al
call fcn.004b8a4f
lea eax, [esp + 0x60]
push eax
call fcn.004b90b0
movzx ecx, word [esp + 0x2c]
add esp, 0x10
cmp esi, ecx
jne 0x430822
movzx edx, word [esp + 0x1e]
cmp ebp, edx
jne 0x430822
movzx ecx, word [esp + 0x22]
cmp dword [esp + 0x38], ecx
jne 0x430822
movzx ecx, word [esp + 0x24]
sub ecx, edi
mov edx, ecx
shl edx, 4
sub edx, ecx
add edx, edx
add edx, edx
sub edx, eax
movzx eax, word [esp + 0x26]
add edx, eax
cmp edx, 0x14
jae 0x430822
mov dword [esp + 0x18], 1
mov ebp, dword [esp + 0x34]
push 4
lea ecx, [esp + 0x1ac]
push ecx
push 4
push ebx
push 0x5168b4
call fcn.00404690
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 4
push eax
push edx
call esi
mov eax, ebp
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x430853
sub eax, edi
push eax
push ebp
push 1
push ebx
push 0x5168c4
call fcn.00404690
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push eax
call esi
push 0x10
lea ecx, [esp + 0x68]
push ecx
push 1
push ebx
push 0x51687c
call fcn.00404690
mov edx, dword [esp + 0x24]
add esp, 4
push eax
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x54a2a0], 0x64
pop edi
pop esi
pop ebp
pop ebx
mov eax, 1
je 0x4308b6
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.004b6da3
add esp, 0x190
ret 8
mov dword [esp + 0x18], ebx
jmp 0x430826