Function at 0x599630
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x794040
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x856918]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
xor ebx, ebx
mov ebp, 0xf
mov dword [esp + 0x18], ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
push 9
push str.Software_
lea ecx, [esp + 0x44]
mov dword [esp + 0x6c], ebx
call fcn.00405920
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x64], 1
lea ecx, [esp + 0x20]
cmp dword [esi + 0x14], ebx
jne 0x5996bd
push 4
push str.kcsg
call fcn.004021c6
jmp 0x5996c6
push 0xffffffffffffffff
push ebx
push esi
call fcn.00401e38
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x48]
call fcn.00401e38
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x5996e6
lea eax, [esp + 0x40]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push eax
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
je 0x5997dc
lea edx, [esp + 0x14]
push edx
push 4
push ebx
push str.software
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
je 0x599729
mov esi, 0x10
jmp 0x599811
mov eax, dword [esp + 0x24]
mov ebp, 0x10
cmp dword [esp + 0x38], ebp
jae 0x59973c
lea eax, [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x599788
cmp dword [esp + 0x38], ebp
jb 0x599764
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00564155
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp dword [esp + 0x54], ebp
jb 0x599847
mov edx, dword [esp + 0x40]
push edx
jmp 0x59983f
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
mov ecx, dword [esp + 0x18]
push esi
push edi
call fcn.00599630
mov esi, 0x10
cmp dword [esp + 0x38], esi
jb 0x5997bf
mov edx, dword [esp + 0x24]
push edx
call fcn.00564155
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp dword [esp + 0x54], esi
jb 0x599847
mov eax, dword [esp + 0x40]
push eax
jmp 0x59983f
mov eax, dword [edi + 0x14]
mov esi, 0x10
cmp dword [edi + 0x18], esi
jb 0x5997ee
mov edi, dword [edi + 4]
jmp 0x5997f1
add edi, 4
mov ecx, dword [esp + 0x14]
push eax
push edi
push 1
push ebx
push 0x7c9998
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x38], esi
jb 0x599824
mov eax, dword [esp + 0x24]
push eax
call fcn.00564155
add esp, 4
mov byte [esp + 0x24], bl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0xf
cmp dword [esp + 0x54], esi
jb 0x599847
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00564155
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00564b24
add esp, 0x54
ret 8