Function at 0x43bd50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56357d
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x144], ecx
lea ecx, [ebp - 0x130]
call fcn.00405080
lea eax, [ebp - 0x48]
xor esi, esi
push eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], esi
call fcn.00413070
mov edi, 7
xor ecx, ecx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], cx
mov ebx, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], ebx
jb 0x43bdcd
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00404090
cmp dword [ebp - 0x34], ebx
jb 0x43bdea
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], esi
mov word [ebp - 0x80], ax
push 0x5bc6e0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.00404090
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x138], esi
push 0x2001f
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 7
call fcn.00404ef0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x6c], ebx
jb 0x43be4b
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b8946
add esp, 4
xor ecx, ecx
push edi
xor eax, eax
mov word [ebp - 0x2c], cx
push 0x587700
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], esi
mov word [ebp - 0x80], ax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
call fcn.00403510
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0xb
call fcn.00404b10
cmp dword [eax + 0x14], ebx
jb 0x43be9f
mov eax, dword [eax]
push eax
call fcn.004bb03f
add esp, 4
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x50], ebx
jb 0x43bebf
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b8946
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x34], ebx
jb 0x43bedc
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b8946
add esp, 4
mov byte [ebp - 4], 9
cmp dword [ebp - 0x18], ebx
jb 0x43bef1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b8946
add esp, 4
mov eax, dword [ebp - 0x134]
cmp eax, 0xa
ja case.default.0x43bf07
movzx ecx, byte [eax + 0x43c0c4]
jmp dword [ecx*4 + 0x43c0bc]
mov ecx, dword [ebp - 0x144]
call fcn.0043b070
push 0x5bc6e0
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.00404810
push str.SearchScopes
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 0xc
call fcn.00404810
add esp, 0x18
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x148], esi
push 0x2001f
push reloc.WS2_32.dll_closesocket
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0xe
call fcn.00404ef0
cmp dword [ebp - 0x34], ebx
jb 0x43bf81
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x50], ebx
jb 0x43bfa2
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b8946
add esp, 4
push 0xc
xor edx, edx
xor eax, eax
push str.DefaultScope
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], dx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.00403510
mov edi, dword [0x5bb610]
cmp dword [0x5bb624], ebx
jae 0x43bfdc
mov edi, 0x5bb610
cmp dword [ebp - 0x18], ebx
jb 0x43bfec
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x134], ecx
jmp 0x43bff5
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x134], edx
mov ebx, dword [ebp - 0x150]
xor eax, eax
cmp edi, esi
setne al
cmp eax, esi
jne 0x43c00d
mov eax, 0xd
jmp 0x43c02b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x134]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push esi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 8
jb 0x43c044
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
cmp ebx, esi
je 0x43c05f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 8
mov eax, dword [ebp - 0x140]
cmp eax, esi
je 0x43c075
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x88], ebx
jb 0x43c08c
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004b8946
add esp, 4
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call fcn.00403350
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret