Function at 0x10040103
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x10040257
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x1004018a
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
call fcn.100411ca
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x10040255
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov eax, 0x19d29be1
test eax, eax
je 0x1004022b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x100401d8
mov dword [ebp - 0x10], 1
jmp 0x100401dc
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jle 0x10040209
mov eax, dword [ebp - 8]
imul eax, dword [eax], 0xa5b7
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
imul eax, dword [ecx]
test eax, eax
jne 0x10040209
and dword [ebp - 0xc], 0
jmp 0x10040210
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0xc], eax
jl 0x1004022b
mov dword [ebp - 0x18], 1
jmp 0x1004022f
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jge 0x10040242
mov dword [ebp - 0x1c], 1
jmp 0x10040246
and dword [ebp - 0x1c], 0
push 0
mov ecx, dword [ebp - 0x6c]
call fcn.10002262
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x100402b9
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x100402a0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x1004029e
push 0x2683
push 0
push 0x1073
push 0x2593
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100402b9
mov byte [ebp - 1], 0
push 0x685d
lea eax, [ebp - 1]
push eax
push 0
push 1
call fcn.1002e744
add esp, 0x10
mov esp, ebp
pop ebp
ret