Function at 0x410300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5804d9
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5ed80c]
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 eax, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x40]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xec], ecx
xor esi, esi
cmp eax, dword [ebp - 0xec]
je 0x4105c3
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040ce00
push 0xb
xor edx, edx
mov edi, 7
push str.Extensions_
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
call fcn.00401c40
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 1
call fcn.0040dd50
push eax
lea eax, [ebp - 0x80]
push 0x5e696c
push eax
mov byte [ebp - 4], 2
call fcn.00406e10
add esp, 0x18
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], esi
push 0x2001f
push reloc.WS2_32.dll_accept
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call fcn.00407ea0
mov ebx, 8
cmp dword [ebp - 0x6c], ebx
jb 0x4103ed
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0055ae44
add esp, 4
xor edx, edx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], esi
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x50], ebx
jb 0x41040a
mov eax, dword [ebp - 0x64]
push eax
call fcn.0055ae44
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], cx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], ebx
jb 0x41042b
mov edx, dword [ebp - 0x48]
push edx
call fcn.0055ae44
add esp, 4
xor ecx, ecx
push 4
xor eax, eax
mov word [ebp - 0x2c], cx
push 0x59cdcc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
call fcn.00401c40
mov ebx, dword [ebp - 0xe8]
cmp ebx, esi
je 0x4104c7
cmp dword [ebp - 0xa4], 8
mov edi, dword [ebp - 0xb8]
jae 0x410471
lea edi, [ebp - 0xb8]
cmp dword [ebp - 0x18], 8
jb 0x410482
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xd8], edx
jmp 0x41048b
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xd8], eax
xor eax, eax
cmp edi, esi
setne al
cmp eax, esi
jne 0x41049d
mov eax, 0xd
jmp 0x4104bb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0xd8]
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push esi
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 7
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 8
jb 0x4104dd
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0055ae44
add esp, 4
xor ecx, ecx
push edi
mov word [ebp - 0x2c], cx
push 0x59cdd8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
call fcn.00401c40
cmp ebx, esi
je 0x41056a
cmp dword [ebp - 0x88], 8
mov edi, dword [ebp - 0x9c]
jae 0x410510
lea edi, [ebp - 0x9c]
cmp dword [ebp - 0x18], 8
jb 0x410521
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xd8], edx
jmp 0x41052a
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xd8], eax
xor eax, eax
cmp edi, esi
setne al
cmp eax, esi
jne 0x41053c
mov edi, 0xd
jmp 0x41055c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0xd8]
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push esi
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, esi
mov edi, 7
cmp dword [ebp - 0x18], 8
jb 0x41057c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0055ae44
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
cmp ebx, esi
je 0x410599
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xe8], esi
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xe4], esi
mov dword [ebp - 4], 0xffffffff
call fcn.0040ad80
add dword [ebp - 0xdc], 0x54
mov eax, dword [ebp - 0xdc]
jmp 0x410342
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.0055bc32
mov esp, ebp
pop ebp
ret