Function at 0x5001f0
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
sub esp, 0x440
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x454]
xor eax, eax
xor ebx, ebx
push 0x103
mov dword [esp + 0x139], eax
mov word [esp + 0x13d], ax
mov byte [esp + 0x13f], al
lea eax, [esp + 0x141]
push ebx
push eax
mov byte [esp + 0x140], bl
mov byte [esp + 0x148], bl
call fcn.005dfd60
push edi
lea ecx, [esp + 0x14c]
push 0x628b4c
push ecx
mov dword [esp + 0x24], 8
call fcn.005dfb23
add esp, 0x18
lea edx, [esp + 0x10]
push edx
push 1
push ebx
lea eax, [esp + 0x148]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x5002e7
push edi
call fcn.004e7d70
push 0x104
lea ecx, [esp + 0x144]
push ebx
push ecx
mov dword [esp + 0x1c], 0x104
call fcn.005dfd60
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x648094
push edx
call esi
test eax, eax
je 0x500301
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x440
ret
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x138]
push edx
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x648160
push ecx
mov dword [esp + 0x24], 8
call esi
cmp byte [esp + 0x134], 1
jne 0x500367
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x440
ret
xor eax, eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.Start
push eax
mov dword [esp + 0x24], 8
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x134]
mov esi, dword [esp + 0x450]
cmp al, 3
jne 0x5003c5
cmp esi, 3
jne 0x5003e4
jmp 0x5004e9
cmp esi, 3
je 0x5003e4
cmp al, 2
jne 0x5003d8
cmp esi, 1
jne 0x5003e4
jmp 0x5004e9
cmp al, 4
jne 0x5003e4
cmp esi, ebx
je 0x5004e9
push 0x103
lea edx, [esp + 0x245]
push ebx
push edx
mov byte [esp + 0x24c], bl
call fcn.005dfd60
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x250]
push ecx
mov dword [esp + 0x2c], 0x104
call fcn.004e7c90
add esp, 0x14
test eax, eax
je 0x5004e9
push 0x103
lea edx, [esp + 0x349]
push ebx
push edx
mov byte [esp + 0x350], bl
call fcn.005dfd60
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x350]
push ecx
mov byte [esp + eax + 0x250], bl
call fcn.004fd220
add esp, 0x10
lea edx, [esp + 0x344]
push edx
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x50047b
call fcn.004d9720
test eax, eax
jne 0x500488
push ebx
push edi
push esi
call fcn.004e7f20
add esp, 0xc
jmp 0x5004e9
push 0x10c
lea ecx, [esp + 0x2c]
push ebx
push ecx
call fcn.005dfd60
add esp, 0xc
push edi
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
push 0x4e8030
push ebx
push ebx
mov dword [esp + 0x148], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x5004e9
push ebx
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea edx, [esp + 0x1c]
push edx
call fcn.004dca10
mov ecx, dword [esp + 0x448]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 2
call fcn.005dfbbe
add esp, 0x440
ret