Function at 0x41d5f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456ea5
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x48], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41d652
mov eax, dword [edi]
mov dword [edi + 0x10], 0
xor ecx, ecx
mov word [eax], cx
mov esi, dword [edx]
mov esi, dword [esi]
cmp byte [esi + 0xd], cl
jne 0x41d76c
jmp 0x41d670
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0x44]
call fcn.00413990
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 8
mov edi, dword [edx + 0x10]
jb 0x41d68c
mov edx, dword [edx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
cmp edi, eax
ja 0x41d6c9
cmp dword [ebp - 0x18], 8
lea eax, [ecx + edi]
mov dword [ebp - 0x4c], eax
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
jb 0x41d6ad
mov ebx, dword [ebp - 0x2c]
lea eax, [edi + edi]
push eax
lea ecx, [ebx + ecx*2]
push edx
push ecx
call fcn.00437380
mov eax, dword [ebp - 0x4c]
add esp, 0xc
xor ecx, ecx
mov word [ebx + eax*2], cx
jmp 0x41d6d7
push edi
push edx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
push edi
call fcn.004045d0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x41d715
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d70b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d847
push edx
push ecx
call fcn.0041fbbf
add esp, 8
push 0x3b
lea ecx, [ebp - 0x2c]
call fcn.004035d0
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x41d745
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41d741
cmp esi, dword [eax + 8]
jne 0x41d741
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41d731
mov esi, eax
jmp 0x41d75c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41d75c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x41d750
cmp byte [esi + 0xd], 0
je 0x41d670
mov edi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x48]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x1c]
lea ecx, [eax*2 + 2]
lea eax, [ebp - 0x2c]
jb 0x41d782
mov eax, dword [ebp - 0x2c]
push ecx
push eax
push 1
push 0
push 0x468090
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test eax, eax
je 0x41d7f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x44]
push str.RegSetValueEx_failed_with__i
push eax
call fcn.004123f0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00403700
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x41d7f3
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d7e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d847
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x41d829
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d81f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d84c
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041fb7c
mov esp, ebp
pop ebp
ret
call fcn.00439d3f
call fcn.00439d3f
int3