Function at 0x4042f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405ef6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1128
call fcn.00405960
mov eax, dword [0x409070]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor eax, ebp
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], esp
push ecx
mov ecx, esi
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x1128], edi
mov dword [ebp - 0x1124], ebx
mov dword [ebp - 0x1138], eax
mov dword [ebp - 0x112c], 0
call fcn.004034c0
test eax, eax
jl 0x40475d
lea edx, [ebp - 0x112c]
push edx
lea eax, [ebp - 0x1014]
push eax
call fcn.00404810
add esp, 8
test eax, eax
jne 0x40438a
mov eax, 0x80020009
jmp 0x40475d
mov ecx, esi
call fcn.00403460
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, esi
call fcn.004034c0
test eax, eax
jl 0x40475d
movzx eax, word [ebp - 0x112c]
cmp eax, 0x13
jg 0x404644
je 0x40455a
cmp eax, 8
je 0x40452f
cmp eax, 0x11
jne 0x404745
lea edx, [ebp - 0x1014]
push edx
call dword [0x407078]
test al, 1
mov dword [ebp - 0x111c], eax
jne 0x4044a7
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x1120], ebx
mov dword [ebp - 0x1118], 0
cmp ebx, 0x100
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
jbe 0x404428
push ebx
lea ecx, [ebp - 0x1118]
call fcn.004048c0
jmp 0x404488
lea edi, [ebp - 0x1114]
mov dword [ebp - 0x1118], edi
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x111c]
xor esi, esi
test eax, eax
jle 0x4044e7
mov eax, dword [ebp - 0x1118]
mov edx, esi
shr edx, 1
add edx, eax
mov al, byte [ebp + esi - 0x1014]
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 0x36
ja case.0x40447b.58
movzx ecx, byte [ecx + 0x404790]
jmp dword [ecx*4 + 0x404780]
mov edi, dword [ebp - 0x1118]
test edi, edi
jne 0x404434
lea eax, [ebp - 0x1114]
test eax, eax
je 0x4044a7
lea ecx, [ebp - 0x1118]
call fcn.004032e0
mov eax, 0x80004005
jmp 0x40475d
sub al, 0x30
jmp 0x4044bf
sub al, 0x37
jmp 0x4044bf
sub al, 0x57
jmp 0x4044bf
xor al, al
mov ecx, esi
and ecx, 1
shl ecx, 2
mov edi, ecx
mov ecx, 4
sub ecx, edi
shl al, cl
mov cl, byte [edx]
or cl, al
mov eax, dword [ebp - 0x111c]
inc esi
cmp esi, eax
mov byte [edx], cl
jl 0x404456
mov ecx, dword [ebp - 0x1118]
mov edx, dword [ebp - 0x1128]
mov eax, dword [edx]
mov edx, dword [ebp - 0x1124]
push ebx
push ecx
push 3
push 0
push edx
push eax
call dword [0x407018]
mov ecx, dword [ebp - 0x1118]
mov esi, eax
lea eax, [ebp - 0x1114]
cmp ecx, eax
je 0x404730
lea ecx, [ebp - 0x1118]
call fcn.004032e0
jmp 0x404730
lea ecx, [ebp - 0x1014]
push ecx
call dword [0x407078]
inc eax
push eax
mov eax, dword [edi]
lea edx, [ebp - 0x1014]
push edx
push 1
push 0
push ebx
push eax
call dword [0x407018]
mov esi, eax
jmp 0x404730
call dword [0x409038]
lea ecx, [ebp - 0x1014]
push ecx
mov ebx, eax
mov dword [ebp - 0x111c], 0
call dword [0x407078]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x4045a8
push edi
call fcn.00402830
add esp, 4
test al, al
je 0x4045a8
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00405960
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x4045c9
lea edx, [esi + esi + 8]
push edx
call dword [0x407108]
add esp, 4
test eax, eax
je 0x4045c9
mov dword [eax], 0
mov dword [ebp - 0x111c], eax
add eax, 8
push ebx
push esi
lea ecx, [ebp - 0x1014]
push ecx
push eax
call fcn.00401630
test eax, eax
jne 0x4045f1
lea ecx, [ebp - 0x111c]
call fcn.00402c30
mov eax, 0x8007000e
jmp 0x40475d
lea edx, [ebp - 0x1120]
push edx
push 0
push 0
push eax
call dword [0x4071b0]
mov eax, dword [ebp - 0x1120]
mov edx, dword [ebp - 0x1124]
push 4
lea ecx, [ebp - 0x1134]
push ecx
push 4
mov dword [ebp - 0x1134], eax
mov eax, dword [ebp - 0x1128]
mov ecx, dword [eax]
push 0
push edx
push ecx
call dword [0x407018]
lea ecx, [ebp - 0x111c]
mov esi, eax
call fcn.00402c30
jmp 0x404730
cmp eax, 0x4008
jne 0x404745
lea edx, [ebp - 0x1014]
push edx
call dword [0x407078]
xor ecx, ecx
inc eax
mov dword [ebp - 0x1118], ecx
cmp eax, 0x100
mov dword [ebp - 4], ecx
mov byte [ebp - 4], 1
jbe 0x4046c3
push eax
lea ecx, [ebp - 0x1118]
call fcn.004048c0
mov edi, dword [ebp - 0x1118]
test edi, edi
je 0x404716
mov al, byte [ebp - 0x1014]
test al, al
lea esi, [ebp - 0x1014]
je 0x4046f0
mov ebx, dword [0x4071c8]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x4046d1
cmp byte [eax], 0x30
jne 0x4046d1
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x4046eb
lea edi, [ebp - 0x1114]
mov dword [ebp - 0x1118], edi
jmp 0x40468d
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [0x407098]
test eax, eax
je 0x4046e9
mov cl, byte [esi + 1]
inc edi
inc esi
mov byte [edi], cl
inc edi
inc esi
cmp byte [esi], 0
jne 0x4046a3
mov eax, dword [ebp - 0x1124]
mov ecx, dword [ebp - 0x1128]
mov byte [edi], 0
mov edx, dword [ebp - 0x1118]
push edx
push eax
call fcn.004047d0
mov edi, dword [ebp - 0x1118]
mov esi, eax
jmp 0x40471b
mov esi, 0xe
lea ecx, [ebp - 0x1114]
cmp edi, ecx
je 0x404730
lea ecx, [ebp - 0x1118]
call fcn.004032e0
test esi, esi
je 0x40473f
push esi
call fcn.00404090
add esp, 4
jmp 0x40475d
mov esi, dword [ebp - 0x1130]
mov edx, dword [ebp - 0x1138]
push edx
mov ecx, esi
call fcn.004034c0
xor ecx, ecx
test eax, eax
setge cl
dec ecx
and eax, ecx
lea esp, [ebp - 0x1144]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004058b7
mov esp, ebp
pop ebp
ret 0xc