Function at 0x41c900
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xdc
push ebx
push esi
lea edx, [esp + 0x14]
push edi
mov ebx, ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41c915
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41c924
mov ax, word [0x43bed0]
mov word [edi], ax
mov eax, dword [esp + 0xec]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c940
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41c950
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x41c9a0
push edi
lea ecx, [esp + 0x6c]
push str.use_encoding__d
push ecx
call fcn.0042da36
movzx edx, byte [ebx + edi + 0x260]
add esp, 0xc
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
push ecx
push edx
call esi
inc edi
cmp edi, 8
jle 0x41c9a0
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x220]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.preferred_encoding
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x21a]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.restricted
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x21b]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.viewonly
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x21c]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.fullscreen
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x238]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.scaling
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x21d]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.8bit
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x230]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.shared
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x224]
mov dword [esp + 0xc], eax
push 4
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push 4
push 0
push str.swapmouse
push edx
call esi
movzx eax, byte [ebx + 0x231]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.belldeiconify
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x225]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.emulate3
push edx
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x228]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.emulate3timeout
push edx
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x22c]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.emulate3fuzz
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x232]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.disableclipboard
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x239]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.fitwindow
push edx
mov dword [esp + 0x24], eax
call esi
mov eax, dword [ebx + 0x240]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
mov dword [esp + 0x1c], eax
push str.scale_den
mov edx, dword [esp + 0x24]
push edx
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x23c]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.scale_num
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x254]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.cursorshape
push edx
mov dword [esp + 0x24], eax
call esi
movzx eax, byte [ebx + 0x255]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.noremotecursor
push edx
mov dword [esp + 0x24], eax
call esi
mov al, byte [ebx + 0x244]
or edi, 0xffffffff
test al, al
je 0x41cc54
mov eax, dword [ebx + 0x248]
mov dword [esp + 0xc], eax
jmp 0x41cc58
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.compresslevel
push edx
call esi
mov al, byte [ebx + 0x24c]
test al, al
je 0x41cc85
mov eax, dword [ebx + 0x250]
mov dword [esp + 0xc], eax
jmp 0x41cc89
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.quality
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0xdc
ret 8