Function at 0x4308e0
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
sub esp, 0x290
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x29c]
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x2a8]
xor ebx, ebx
push 0x103
mov dword [esp + 0x79], eax
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 word [esp + 0x95], ax
mov byte [esp + 0x97], al
lea eax, [esp + 0x99]
push ebx
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x80], bl
mov byte [esp + 0xa0], bl
call fcn.004b6dc0
push 0x103
lea ecx, [esp + 0x1a9]
push ebx
push ecx
mov byte [esp + 0x1b0], bl
call fcn.004b6dc0
add esp, 0x18
xor eax, eax
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
lea eax, [esp + 0x14]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x5168d8
mov byte [esp + 0x80], bl
call fcn.00404690
add esp, 4
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [esp + 0x2c], 2
jne 0x430d3a
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x78]
push edx
push ebx
push ebx
push 0x5168c4
mov dword [esp + 0x28], 0x20
call fcn.00404690
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push eax
call esi
test eax, eax
jne 0x430d3a
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x19c]
push edx
push ebx
push ebx
push 0x516914
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 0x430d3a
lea ecx, [esp + 0x74]
push ecx
push ebp
call fcn.004b9a67
add esp, 8
test eax, eax
jne 0x430d3a
lea edx, [esp + 0x198]
push edx
push edi
call fcn.004b9a67
add esp, 8
test eax, eax
jne 0x430d3a
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x28]
movzx edx, word [esp + 0x26]
movzx eax, word [esp + 0x24]
push ecx
movzx ecx, word [esp + 0x26]
push edx
movzx edx, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x28]
push ecx
push edx
push eax
push 0x516890
call fcn.00404690
add esp, 4
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.004b79a8
add esp, 0x20
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x98]
push eax
push ebx
push ebx
push 0x51687c
mov dword [esp + 0x28], 0x104
call fcn.00404690
mov ecx, dword [esp + 0x24]
add esp, 4
push eax
push ecx
call esi
test eax, eax
jne 0x430c7b
push 4
lea edx, [esp + 0x98]
mov dword [esp + 0x45], eax
mov word [esp + 0x49], ax
mov byte [esp + 0x4b], al
push edx
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x4c], bl
call fcn.004b8a4f
lea ecx, [esp + 0x4c]
push ecx
call fcn.004b90b0
mov esi, eax
xor eax, eax
push 2
lea edx, [esp + 0xad]
mov dword [esp + 0x4d], eax
mov word [esp + 0x51], ax
mov byte [esp + 0x53], al
push edx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x54], bl
call fcn.004b8a4f
lea ecx, [esp + 0x54]
push ecx
call fcn.004b90b0
mov ebp, eax
xor eax, eax
push 2
lea edx, [esp + 0xc0]
mov dword [esp + 0x7d], eax
mov word [esp + 0x81], ax
mov byte [esp + 0x83], al
push edx
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x84], bl
call fcn.004b8a4f
lea ecx, [esp + 0x84]
push ecx
call fcn.004b90b0
mov dword [esp + 0x64], eax
xor eax, eax
push 2
lea edx, [esp + 0xd3]
mov dword [esp + 0x85], eax
mov word [esp + 0x89], ax
mov byte [esp + 0x8b], al
push edx
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x8c], bl
call fcn.004b8a4f
lea ecx, [esp + 0x8c]
push ecx
call fcn.004b90b0
add esp, 0x40
mov edi, eax
xor eax, eax
push 2
lea edx, [esp + 0xa6]
mov dword [esp + 0x4d], eax
mov word [esp + 0x51], ax
mov byte [esp + 0x53], al
push edx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x54], bl
call fcn.004b8a4f
lea ecx, [esp + 0x54]
push ecx
call fcn.004b90b0
movzx edx, word [esp + 0x2c]
add esp, 0x10
cmp esi, edx
jne 0x430c77
movzx ecx, word [esp + 0x1e]
cmp ebp, ecx
jne 0x430c77
movzx edx, word [esp + 0x22]
cmp dword [esp + 0x34], edx
jne 0x430c77
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 0x430c77
mov dword [esp + 0x18], 1
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x198]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x430c85
sub eax, edx
push eax
lea ecx, [esp + 0x19c]
push ecx
push 1
push ebx
push 0x516914
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]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x430cc0
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 + 0x64]
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 0x430d23
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x28c]
xor ecx, esp
call fcn.004b6da3
add esp, 0x290
ret 8
mov dword [esp + 0x18], ebx
jmp 0x430c7b