Function at 0x404409
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20a0]
mov eax, 0x2120
call fcn.00410e40
mov eax, dword [0x417090]
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.004042f8
cmp eax, ebx
jl 0x4046e9
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x9c]
push eax
call fcn.0040421a
test eax, eax
pop ecx
pop ecx
jne 0x40447f
mov eax, 0x80020009
jmp 0x4046e9
call fcn.004042d3
lea eax, [ebp + 0x9c]
mov ecx, esi
call fcn.004042f8
cmp eax, ebx
jl 0x4046e9
movzx eax, word [ebp - 0x6c]
sub eax, 8
je 0x4046a2
sub eax, 9
je 0x4045a2
dec eax
dec eax
je 0x404576
sub eax, 0x3ff5
jne 0x4046d8
lea eax, [ebp + 0x9c]
push eax
call dword [0x4120a0]
inc eax
inc eax
push 2
push eax
mov dword [ebp - 0x68], ebx
call fcn.0040548d
cmp eax, 0x100
pop ecx
pop ecx
jbe 0x4044f1
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040546c
jmp 0x4044f7
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov edi, dword [ebp - 0x68]
cmp edi, ebx
je 0x40455a
cmp word [ebp + 0x9c], bx
lea esi, [ebp + 0x9c]
je 0x404541
mov ebx, dword [0x4121f8]
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x404532
cmp word [eax], 0x30
jne 0x404532
and word [edi], 0
inc edi
push eax
inc edi
call ebx
mov esi, eax
jmp 0x404539
mov word [edi], cx
inc edi
inc edi
inc esi
inc esi
cmp word [esi], 0
jne 0x404513
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.00403bc1
mov esi, eax
jmp 0x40455d
push 0xe
pop esi
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x4046cb
lea eax, [ebp - 0x68]
call fcn.00405463
jmp 0x4046cb
call dword [section..data]
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
lea eax, [ebp + 0x9c]
push eax
call dword [0x4121dc]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
push 4
lea eax, [ebp - 0x6c]
push eax
push 4
jmp 0x4046bd
lea eax, [ebp + 0x9c]
push eax
call dword [0x4120a0]
test al, 1
mov dword [ebp - 0x6c], eax
je 0x4045c0
mov eax, 0x80004005
jmp 0x4046e9
cdq
sub eax, edx
mov edi, eax
sar edi, 1
push 1
push edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x68], ebx
call fcn.0040548d
cmp eax, 0x100
pop ecx
pop ecx
jbe 0x4045ea
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040546c
jmp 0x4045f0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], ebx
jne 0x404606
lea eax, [ebp - 0x64]
test eax, eax
je 0x4045b6
lea eax, [ebp - 0x68]
call fcn.00405463
jmp 0x4045b6
push edi
push ebx
push dword [ebp - 0x68]
call fcn.00406c40
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x6c], ebx
jle 0x404678
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 0x40465c
cmp edx, 0x39
jle 0x404655
cmp edx, 0x40
jle 0x40465c
cmp edx, 0x46
jle 0x404650
add edx, 0xffffff9f
cmp edx, 5
ja 0x40465c
sub cl, 0x57
jmp 0x404658
sub cl, 0x37
jmp 0x404658
sub cl, 0x30
mov dl, cl
jmp 0x40465e
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 0x40461a
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
push edi
push dword [ebp - 0x68]
push 3
push ebx
push dword [ebp - 0x74]
push eax
call dword [section..rdata]
mov esi, eax
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x4046cb
lea eax, [ebp - 0x68]
call fcn.00405463
jmp 0x4046cb
lea eax, [ebp + 0x9c]
push eax
call dword [0x4120a0]
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 [section..rdata]
mov esi, eax
cmp esi, ebx
je 0x4046d8
mov eax, esi
call fcn.00403a58
jmp 0x4046e9
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
call fcn.004042f8
cmp eax, ebx
jl 0x4046e9
xor eax, eax
mov ecx, dword [ebp + 0x209c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406308
add ebp, 0x20a0
leave
ret 8