Function at 0x407340
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1108]
mov eax, 0x1108
call fcn.00425d90
push 0xffffffffffffffff
push 0x4272f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43bafc]
xor eax, ebp
mov dword [ebp + 0x1104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x28], edi
mov ebx, dword [ebp + 0x1110]
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0x1114]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0x1118]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 0x104]
push ecx
mov ecx, edi
call fcn.00405ef0
test eax, eax
jl 0x407717
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp + 0x104]
push eax
call fcn.00405cf0
add esp, 8
test eax, eax
jne 0x4073de
mov eax, 0x80020009
jmp 0x407717
mov ecx, edi
call fcn.00405e90
lea ecx, [ebp + 0x104]
push ecx
mov ecx, edi
call fcn.00405ef0
test eax, eax
jl 0x407717
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x40760b
je 0x40753e
cmp eax, 8
je 0x407526
cmp eax, 0x11
jne 0x407700
lea edx, [ebp + 0x104]
push edx
call dword [0x42d188]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test bl, 1
jne 0x407493
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], edi
mov dword [ebp], 0
mov esi, 4
mov dword [ebp - 4], esi
mov byte [ebp - 4], 5
push edi
lea ecx, [ebp]
call fcn.00406e50
mov dword [ebp - 4], esi
jmp 0x407475
mov eax, dword [ebp]
test eax, eax
jne 0x40749d
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x407493
lea ecx, [ebp]
call fcn.004061a0
mov eax, 0x80004005
jmp 0x407717
push edi
push 0
push eax
call fcn.00425e2a
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x4074eb
nop
mov ecx, esi
shr ecx, 1
mov edx, dword [ebp]
lea edi, [ecx + edx]
movzx eax, byte [ebp + esi + 0x104]
push eax
call fcn.00405de0
add esp, 4
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [edi], al
add esi, 1
cmp esi, ebx
jl 0x4074b0
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push edi
mov ecx, dword [ebp]
push ecx
push 3
push 0
mov edx, dword [ebp - 0x20]
push edx
push eax
call dword [0x42d018]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4076ee
lea ecx, [ebp]
call fcn.004061a0
jmp 0x4076ee
push 1
lea ecx, [ebp + 0x104]
push ecx
push esi
mov ecx, ebx
call fcn.00405b10
mov esi, eax
jmp 0x4076ee
call dword [0x43bae0]
mov edi, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
lea edx, [ebp + 0x104]
push edx
call dword [0x42d188]
add eax, 1
mov dword [ebp - 0x18], eax
push 2
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405810
add esp, 0xc
test eax, eax
jl 0x4075be
mov esi, dword [ebp - 0x18]
cmp esi, 0x400
jg 0x4075a0
push esi
call fcn.00406210
add esp, 4
test al, al
je 0x4075a0
mov eax, esi
call fcn.00425dc0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x4075a9
push esi
lea ecx, [ebp - 0x14]
call fcn.00406550
push edi
shr esi, 1
push esi
lea ecx, [ebp + 0x104]
push ecx
push eax
call fcn.00405860
test eax, eax
jne 0x4075d7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406120
mov eax, 0x8007000e
jmp 0x407717
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push eax
call dword [0x42d38c]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, ebx
call fcn.00405af0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406120
jmp 0x4076ee
cmp eax, 0x4008
jne 0x407700
lea edx, [ebp + 0x104]
push edx
call dword [0x42d188]
add eax, 2
xor esi, esi
mov dword [ebp], esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp]
call fcn.00406e50
mov dword [ebp - 4], esi
jmp 0x40764f
mov edi, dword [ebp]
cmp edi, esi
je 0x4076d2
lea esi, [ebp + 0x104]
cmp byte [ebp + 0x104], 0
je 0x4076b5
mov ebx, dword [0x42d4cc]
jmp 0x407670
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40768c
cmp byte [eax], 0x30
jne 0x40768c
mov byte [edi], 0
add edi, 1
push eax
call ebx
mov esi, eax
jmp 0x4076b0
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [0x42d180]
test eax, eax
je 0x4076aa
add edi, 1
add esi, 1
mov al, byte [esi]
test al, al
je 0x4076b5
mov byte [edi], al
add edi, 1
add esi, 1
cmp byte [esi], 0
jne 0x407670
mov byte [edi], 0
add edi, 1
mov byte [edi], 0
mov ecx, dword [ebp]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00405b50
mov esi, eax
jmp 0x4076d7
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4076ee
lea ecx, [ebp]
call fcn.004061a0
test esi, esi
je 0x4076fd
push esi
call fcn.00405990
add esp, 4
jmp 0x407717
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, edi
call fcn.00405ef0
xor edx, edx
test eax, eax
setge dl
sub edx, 1
and eax, edx
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1104]
xor ecx, ebp
call fcn.00425c88
add ebp, 0x1108
mov esp, ebp
pop ebp
ret 0xc