Function at 0x404640
Capabilities:
Get system information on windows
Query or enumerate registry value
Resume thread
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x47eb1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x49f598]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
push 0x80ec
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 4
call fcn.0047512e
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push str.Software_
push ecx
call fcn.004717ef
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 5
call fcn.0047161f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 4
call fcn.004714e6
push 0x84e8
lea ecx, [esp + 0x24]
call fcn.0047512e
push 0x84e9
lea ecx, [esp + 0x20]
call fcn.0047512e
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push SysReAllocStringLen
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push 0x104
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0x104
call fcn.00471916
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
mov eax, dword [esp + 0x18]
push ebx
push ebx
push esi
push eax
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.00471965
lea ecx, [esp + 0x18]
lea esi, [ebp + 0x154]
push ecx
push esi
mov dword [esi], ebx
mov dword [esp + 0x20], 4
push ebx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push ebx
push edx
push eax
call edi
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x5a]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
lea edx, [esp + 0x48]
push str._u__u__u__u__u__u__u__u__u
push edx
call fcn.0046f370
mov eax, dword [esi]
add esp, 0x2c
cmp eax, ebx
je 0x4047f7
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4047ea
cmp cl, bl
je 0x4047e6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4047ea
add eax, 2
add edi, 2
cmp cl, bl
jne 0x4047c6
xor eax, eax
jmp 0x4047ef
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4048ad
push 0xf4
call fcn.004704db
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x68], 6
je 0x404837
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
push esi
push ecx
mov ecx, eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 1
call fcn.00401d60
mov edi, eax
jmp 0x404839
xor edi, edi
push ebx
push ebx
push 4
mov ecx, edi
mov byte [esp + 0x74], 4
call fcn.00470c38
mov edx, dword [edi + 0x28]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [edi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.004024e0
cmp edi, ebx
je 0x40487d
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
push 1
push ebx
push eax
push ecx
call edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push 4
push esi
push 4
push ebx
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 3
call fcn.004714e6
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 2
call fcn.004714e6
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 1
call fcn.004714e6
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], bl
call fcn.004714e6
lea ecx, [esp + 0x14]
mov dword [esp + 0x68], 0xffffffff
call fcn.004714e6
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret