Function at 0x407340
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x423966
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x448090]
xor eax, esp
mov dword [esp + 0x880], eax
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, esp
push eax
lea eax, [esp + 0x898]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, edx
lea edx, [ebx + 0x45c]
cmp ecx, edx
sete byte [esp + 0x17]
mov dword [esp + 0x68], eax
xor edi, edi
mov al, 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x58], ecx
mov byte [esp + 0x16], al
cmp esi, edi
je 0x407740
cmp ecx, edi
je 0x407740
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x8a0], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov byte [esp + 0x8a0], al
mov eax, dword [ebx + 0x44c]
push eax
lea esi, [esp + 0x2c]
call fcn.0040d5b0
mov ecx, dword [ebx + 0x44c]
push ecx
lea esi, [esp + 0x1c]
call fcn.00409430
add ebx, 0x42c
mov dword [esp + 0x5c], ebx
cmp dword [ebx + 0x20], edi
jne 0x407419
mov ecx, ebx
call fcn.004252d0
mov edx, dword [ebx + 0x1c]
mov eax, dword [edx]
mov dword [ebx + 0x2c], eax
add eax, 0x10
cmp eax, edi
je 0x407620
mov edi, dword [eax + 4]
fldz
mov esi, dword [esp + 0x68]
fstp qword [esp + 0x3c]
mov dword [esp + 0x48], edi
test esi, esi
je 0x40744f
lea eax, [esp + 0x3c]
push eax
call fcn.0040ba30
test al, al
jne 0x40746a
mov edx, dword [esp + 0x64]
lea ebx, [esp + 0x3c]
mov ecx, edi
call fcn.0040f910
mov ebx, dword [esp + 0x5c]
test eax, eax
je 0x4075bf
cmp byte [esp + 0x17], 0
je 0x407576
cmp dword [ebp + 0x10], 0
fldz
fstp qword [esp + 0x4c]
jne 0x4074ab
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x4c]
push eax
push edi
call edx
test al, al
je 0x4074ab
fld qword [esp + 0x4c]
fld qword [esp + 0x3c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4075bf
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x48]
cmp ecx, eax
jae 0x4074ea
mov edx, ecx
mov ecx, dword [esp + 0x28]
cmp ecx, edx
ja 0x4074ea
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [esp + 0x30]
jne 0x4074d7
lea eax, [esp + 0x28]
call fcn.0040d2c0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x407503
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + esi*4]
mov dword [eax], edx
jmp 0x407503
cmp eax, dword [esp + 0x30]
jne 0x4074f9
lea eax, [esp + 0x28]
call fcn.0040d2c0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x407503
mov dword [eax], edi
mov edi, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x3c]
cmp eax, edi
jae 0x407550
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, ecx
ja 0x407550
mov esi, ecx
sub esi, eax
sar esi, 3
cmp edi, dword [esp + 0x20]
jne 0x40753a
lea eax, [esp + 0x18]
call fcn.00409760
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x407547
mov edx, dword [esp + 0x18]
fld qword [edx + esi*8]
fstp qword [edi]
add edi, 8
mov dword [esp + 0x1c], edi
jmp 0x4075c3
cmp edi, dword [esp + 0x20]
jne 0x407563
lea eax, [esp + 0x18]
call fcn.00409760
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40756d
fld qword [esp + 0x3c]
fstp qword [edi]
add edi, 8
mov dword [esp + 0x1c], edi
jmp 0x4075c3
fld qword [esp + 0x3c]
push edi
push str.Param_u
fstp qword [esp + 0x54]
lea edx, [esp + 0x74]
call fcn.0040d760
fld qword [esp + 0x54]
mov edx, dword [esp + 0x60]
fstp qword [esp + 0x54]
add esp, 8
push 8
lea eax, [esp + 0x50]
push eax
mov eax, dword [edx + 4]
push 3
push 0
lea ecx, [esp + 0x7c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4075bf
mov byte [esp + 0x16], 0
mov edi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x2c]
cmp byte [eax + 0x1d], 0
jne 0x40760f
mov ecx, dword [eax + 8]
cmp byte [ecx + 0x1d], 0
jne 0x4075ef
mov eax, dword [ecx]
cmp byte [eax + 0x1d], 0
jne 0x4075ea
lea ecx, [ecx]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x1d], 0
je 0x4075e0
mov dword [ebx + 0x2c], ecx
jmp 0x40760f
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
jne 0x40760c
mov ecx, dword [ebx + 0x2c]
cmp ecx, dword [eax + 8]
jne 0x40760c
mov dword [ebx + 0x2c], eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x4075f8
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x2c]
cmp eax, dword [ebx + 0x1c]
je 0x407624
add eax, 0x10
jne 0x40742c
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x407648
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00406020
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
je 0x407668
push 0
push eax
push ecx
call fcn.00411920
mov edx, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x407684
push 0
push edi
push eax
call fcn.00411920
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x68]
push 0
lea edx, [esp + 0x94]
mov dword [esp + 0x68], 0x800
call fcn.0040f9b0
test eax, eax
je 0x4076ed
mov esi, dword [esp + 0x60]
push 0
push str.Chunk_u
lea edx, [esp + 0x74]
call fcn.0040d760
mov ecx, dword [esp + 0x60]
add esp, 8
push esi
lea edx, [esp + 0x90]
push edx
mov edx, dword [ecx + 4]
push 3
push 0
lea eax, [esp + 0x7c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4076ed
mov byte [esp + 0x16], 0
mov bl, byte [esp + 0x16]
jmp 0x40771c
mov bl, byte [esp + 0x16]
test bl, bl
je 0x40771c
cmp byte [esp + 0x17], 0
je 0x40771c
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x568]
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
push ecx
call esi
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x558]
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40772d
push eax
call fcn.00411eda
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40773e
push eax
call fcn.00411eda
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x898]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.004117c9
mov esp, ebp
pop ebp
ret 0xc