Function at 0x4048ce
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20a0]
mov eax, 0x2120
call fcn.00410140
mov eax, dword [0x416090]
xor eax, ebp
mov dword [ebp + 0x209c], eax
mov eax, dword [ebp + 0x20a8]
push ebx
push esi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x20ac]
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x80], eax
xor ebx, ebx
lea eax, [ebp + 0x9c]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], ebx
call fcn.0040421c
cmp eax, ebx
jl 0x404bc3
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x9c]
push eax
call fcn.00404bdd
test eax, eax
pop ecx
pop ecx
jne 0x404944
mov eax, 0x80020009
jmp 0x404bc3
call fcn.00404f10
lea eax, [ebp + 0x9c]
mov ecx, esi
call fcn.0040421c
cmp eax, ebx
jl 0x404bc3
movzx eax, word [ebp - 0x6c]
sub eax, 8
je 0x404b7c
sub eax, 9
je 0x404a75
dec eax
dec eax
je 0x404a49
sub eax, 0x3ff5
jne 0x404bb2
lea eax, [ebp + 0x9c]
push eax
call dword [0x411148]
inc eax
push 2
inc eax
pop ecx
mul ecx
cmp edx, ebx
mov dword [ebp - 0x68], ebx
ja 0x4049a7
cmp eax, 0xffffffff
jbe 0x4049b1
push 0x80070057
call entry0
cmp eax, 0x100
jbe 0x4049c4
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00404cc2
jmp 0x4049ca
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov edi, dword [ebp - 0x68]
cmp edi, ebx
je 0x404a2d
cmp word [ebp + 0x9c], bx
lea esi, [ebp + 0x9c]
je 0x404a14
mov ebx, dword [0x411204]
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x404a05
cmp word [eax], 0x30
jne 0x404a05
and word [edi], 0
inc edi
push eax
inc edi
call ebx
mov esi, eax
jmp 0x404a0c
mov word [edi], cx
inc edi
inc edi
inc esi
inc esi
cmp word [esi], 0
jne 0x4049e6
xor ebx, ebx
mov word [edi], bx
mov word [edi + 2], bx
push dword [ebp - 0x68]
push dword [ebp - 0x74]
push dword [ebp - 0x70]
call fcn.00404c6f
mov esi, eax
jmp 0x404a30
push 0xe
pop esi
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x404ba5
lea eax, [ebp - 0x68]
call fcn.00404cb9
jmp 0x404ba5
call dword [section..data]
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
lea eax, [ebp + 0x9c]
push eax
call dword [0x4111ec]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
push 4
lea eax, [ebp - 0x6c]
push eax
push 4
jmp 0x404b97
lea eax, [ebp + 0x9c]
push eax
call dword [0x411148]
test al, 1
mov dword [ebp - 0x6c], eax
je 0x404a93
mov eax, 0x80004005
jmp 0x404bc3
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp ebx, ebx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x68], ebx
ja 0x4049a7
cmp esi, 0xffffffff
ja 0x4049a7
cmp esi, 0x100
jbe 0x404ac5
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.00404cc2
jmp 0x404acb
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], ebx
jne 0x404ae1
lea eax, [ebp - 0x64]
test eax, eax
je 0x404a89
lea eax, [ebp - 0x68]
call fcn.00404cb9
jmp 0x404a89
push esi
push ebx
push dword [ebp - 0x68]
call fcn.00406620
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x6c], ebx
jle 0x404b53
movzx ecx, word [ebp + esi*2 + 0x9c]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x68]
movzx edx, cx
cmp edx, 0x30
jl 0x404b37
cmp edx, 0x39
jle 0x404b30
cmp edx, 0x40
jle 0x404b37
cmp edx, 0x46
jle 0x404b2b
add edx, 0xffffff9f
cmp edx, 5
ja 0x404b37
sub cl, 0x57
jmp 0x404b33
sub cl, 0x37
jmp 0x404b33
sub cl, 0x30
mov dl, cl
jmp 0x404b39
xor dl, dl
mov edi, esi
and edi, 1
shl edi, 2
push 4
pop ecx
sub ecx, edi
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x6c]
jl 0x404af5
mov edi, dword [ebp - 0x70]
push dword [ebp - 0x7c]
mov eax, dword [edi]
push dword [ebp - 0x68]
push 3
push ebx
push dword [ebp - 0x74]
push eax
call dword [0x411014]
mov esi, eax
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x404ba5
lea eax, [ebp - 0x68]
call fcn.00404cb9
jmp 0x404ba5
lea eax, [ebp + 0x9c]
push eax
call dword [0x411148]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x9c]
push eax
push 1
push ebx
push dword [ebp - 0x74]
push dword [edi]
call dword [0x411014]
mov esi, eax
cmp esi, ebx
je 0x404bb2
mov eax, esi
call fcn.00404f01
jmp 0x404bc3
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
call fcn.0040421c
cmp eax, ebx
jl 0x404bc3
xor eax, eax
mov ecx, dword [ebp + 0x209c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004057da
add ebp, 0x20a0
leave
ret 8