Function at 0x405d80
Capabilities:
Set registry value

Disassembly:
mov eax, 0x211c
call fcn.00453490
mov eax, dword [0x477b54]
xor eax, esp
push ebp
push esi
mov esi, dword [esp + 0x212c]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x212c]
lea ecx, [esp + 0x124]
mov dword [esp + 0x2124], eax
mov eax, dword [esp + 0x2134]
push ecx
mov ecx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
call fcn.00404fa0
test eax, eax
jl 0x4060c8
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x128]
push eax
call fcn.00406140
add esp, 8
test eax, eax
jne 0x405e04
mov eax, 0x80020009
jmp 0x4060c8
mov ecx, dword [ebp]
xor edx, edx
mov dx, word [ecx]
push ebx
mov ecx, ebp
push edx
call fcn.00404f50
test eax, eax
mov ebx, dword [0x4606f4]
je 0x405e3c
nop
mov eax, dword [ebp]
push eax
call ebx
mov ecx, eax
xor edx, edx
mov dword [ebp], eax
mov dx, word [ecx]
mov ecx, ebp
push edx
call fcn.00404f50
test eax, eax
jne 0x405e20
lea eax, [esp + 0x128]
push eax
mov ecx, ebp
call fcn.00404fa0
test eax, eax
jl 0x4060c7
movzx eax, word [esp + 0x1c]
cmp eax, 0x13
jg 0x405ff9
je 0x405fa7
cmp eax, 8
je 0x405f7a
cmp eax, 0x11
jne 0x4060b1
lea ecx, [esp + 0x128]
push ecx
call dword [0x46028c]
mov ebx, eax
test bl, 1
jne 0x405ec8
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
cmp ebp, 0x100
mov dword [esp + 0x24], 0
jbe 0x405ed2
push ebp
lea ecx, [esp + 0x28]
call fcn.00406280
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x405eda
lea edx, [esp + 0x28]
test edx, edx
je 0x405ec8
lea ecx, [esp + 0x24]
call fcn.00406270
mov eax, 0x80004005
jmp 0x4060c7
lea edi, [esp + 0x28]
mov dword [esp + 0x24], edi
mov ecx, ebp
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
xor edi, edi
test ebx, ebx
jle 0x405f2d
mov eax, dword [esp + 0x24]
mov esi, edi
shr esi, 1
add esi, eax
xor eax, eax
mov ax, word [esp + edi*2 + 0x128]
push eax
call fcn.004061f0
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
mov dl, byte [esi]
shl al, cl
add esp, 4
or dl, al
inc edi
cmp edi, ebx
mov byte [esi], dl
jl 0x405ef2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push ebp
push ecx
push 3
push 0
push edx
push eax
call dword [0x460024]
mov ecx, dword [esp + 0x24]
mov esi, eax
lea eax, [esp + 0x28]
cmp ecx, eax
je 0x405f60
lea ecx, [esp + 0x24]
call fcn.00406270
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x4060b1
push esi
call fcn.00405b20
add esp, 4
jmp 0x4060c7
lea ecx, [esp + 0x128]
push ecx
call dword [0x46028c]
mov ecx, dword [edi]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x12c]
push eax
push 1
push 0
push esi
push ecx
call dword [0x460024]
mov esi, eax
jmp 0x405f64
call dword [0x4770a0]
lea edx, [esp + 0x10]
push edx
push 0
push 0
lea eax, [esp + 0x134]
push eax
mov dword [esp + 0x24], 0
call dword [0x460680]
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push esi
push eax
mov dword [esp + 0x30], ecx
call dword [0x460024]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00404820
jmp 0x405f64
cmp eax, 0x4008
jne 0x4060b1
lea ecx, [esp + 0x128]
push ecx
call dword [0x46028c]
inc eax
lea edx, [eax + eax]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
call fcn.004062b0
mov edi, dword [esp + 0x24]
test edi, edi
je 0x406092
cmp word [esp + 0x128], 0
lea esi, [esp + 0x128]
je 0x406072
push esi
call ebx
mov cx, word [esi]
cmp cx, 0x5c
jne 0x406063
cmp word [eax], 0x30
jne 0x406063
mov word [edi], 0
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x40606c
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x406042
mov ecx, dword [esp + 0x14]
mov word [edi], 0
mov eax, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004060f0
mov edi, dword [esp + 0x24]
mov esi, eax
jmp 0x406097
mov esi, 0xe
lea edx, [esp + 0x28]
cmp edi, edx
je 0x405f64
lea ecx, [esp + 0x24]
call fcn.00406260
jmp 0x405f64
mov eax, dword [esp + 0x20]
push eax
mov ecx, ebp
call fcn.00404fa0
xor ecx, ecx
test eax, eax
setge cl
dec ecx
and eax, ecx
pop ebx
mov ecx, dword [esp + 0x2124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045337b
add esp, 0x211c
ret 0xc