Function at 0x437300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547745
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp byte [0x5cc2dc], 0
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
je 0x43736f
push ebx
mov dword [ebp - 0x10], 0x961828
mov eax, dword [ebp - 0x10]
push edi
sub eax, 0x407f40
push esi
push eax
movzx eax, word [0x5cc2dc]
push eax
call fcn.004bad80
add esp, 0x14
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.00435f50
add esp, 8
cmp dword [ebp - 0x24], 8
lea ecx, [ebp - 0x38]
movzx eax, byte [ebp + 8]
cmovae ecx, dword [ebp - 0x38]
xor eax, 1
sub eax, 0x7fffffff
lea edx, [ebp - 0x14]
mov dword [ebp + 8], 0
push edx
lea edx, [ebp + 8]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x4373c8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 1
test ecx, ecx
jne 0x437566
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00433910
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.00433780
add esp, 0x10
cmp byte [0x5cc2dc], 0
mov byte [ebp - 4], 4
je 0x43742b
mov dword [ebp - 0x10], 0x972bb8
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x10]
sub ecx, 0x419270
cmp dword [ebp - 0x54], 8
cmovae eax, dword [ebp - 0x68]
push eax
movzx eax, word [0x5cc2dc]
push edi
push esi
push ecx
push eax
call fcn.004bad80
add esp, 0x14
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
cmovae edx, dword [ebp - 0x68]
test edi, edi
jne 0x437445
lea edx, [edi + 0xd]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x43747b
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437450
sub ecx, dword [ebp - 0x10]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push edx
push dword [ebp - 0x20]
call edi
mov edx, eax
cmp byte [0x5cc2dc], 0
je 0x4374e5
mov dword [ebp - 0x10], 0x977aac
xor eax, eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x41e110
test edx, edx
sete al
push eax
movzx eax, word [0x5cc2dc]
push ecx
push eax
call fcn.004bad80
add esp, 0xc
cmp byte [0x5cc2dc], 0
je 0x4374e5
mov dword [ebp - 0x10], 0x97c970
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x10]
sub ecx, 0x422fb0
cmp dword [ebp - 0x3c], 8
cmovae eax, dword [ebp - 0x50]
push eax
movzx eax, word [0x5cc2dc]
push ebx
push esi
push ecx
push eax
call fcn.004bad80
add esp, 0x14
cmp dword [ebp - 0x3c], 8
lea edx, [ebp - 0x50]
cmovae edx, dword [ebp - 0x50]
test ebx, ebx
jne 0x4374f9
lea edx, [ebx + 0xd]
jmp 0x437524
mov ecx, ebx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437500
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0
push edx
push dword [ebp - 0x20]
call edi
mov edx, eax
cmp byte [0x5cc2dc], 0
je 0x437556
xor eax, eax
mov dword [ebp + 8], 0x9817ec
mov ecx, dword [ebp + 8]
sub ecx, 0x427e50
test edx, edx
sete al
push eax
movzx eax, word [0x5cc2dc]
push ecx
push eax
call fcn.004bad80
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.00416700
lea ecx, [ebp - 0x68]
call fcn.00416700
mov edx, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
cmp edx, 8
jb 0x43759f
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437595
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4375cf
push edx
push ecx
call fcn.004b9160
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 7
test eax, eax
je 0x4375c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0051bb5f
int3