Function at 0x4105ad
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0040fd5b
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4102ae
or eax, 0xffffffff
jmp 0x410810
push 0
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040ff21
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4102d5
or eax, 0xffffffff
jmp 0x410810
push 0x2e
push dword [ebp - 0x14]
call fcn.0041f3a0
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4102f9
push dword [ebp - 0x14]
call fcn.0041ea20
pop ecx
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
push 0x439054
push dword [ebp - 8]
call fcn.0041eab0
pop ecx
pop ecx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x410343
and dword [ebp - 0x24], 0
push str.failed_to_create_script_file
push 0
call fcn.0041aa80
pop ecx
pop ecx
jmp 0x4107da
and dword [ebp - 0x34], 0
mov word [ebp - 0x3c], 0xaf1a
mov word [ebp - 0x3a], 5
mov byte [ebp - 0x38], 0
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
and dword [ebp - 0x48], 0
push 4
mov eax, dword [ebp - 0x10]
add eax, 0x30
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x30], 0
je 0x410399
mov eax, dword [ebp - 0x10]
push dword [eax + 0x30]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x2c]
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
push 4
mov eax, dword [ebp - 0x10]
add eax, 0x4c
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x4103cf
mov eax, dword [ebp - 0x10]
push dword [eax + 0x4c]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x48]
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
push 4
push 0x44e5c4
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
cmp dword [0x44e5c4], 0
je 0x410403
push dword [0x44e5c4]
push dword [0x44e5c0]
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
and dword [ebp - 0x50], 0
and dword [ebp - 0x54], 0
and dword [ebp - 0x2c], 0
mov eax, dword [0x4577dc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4106e9
and dword [ebp - 0x58], 0
jmp 0x41042e
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax + 4]
jge 0x4106db
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
cmp dword [ecx + eax + 0x110], 0xffffffef
je 0x4106d6
cmp dword [ebp - 0x50], 0
je 0x410482
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
push dword [ecx + eax]
push dword [ebp - 0x50]
call fcn.0041eba8
pop ecx
pop ecx
test eax, eax
jne 0x4106d6
cmp dword [ebp - 0x50], 0
jne 0x4104d0
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov eax, dword [eax + ecx]
mov dword [ebp - 0x50], eax
push 0x5c
push dword [ebp - 0x50]
call fcn.0041f3a0
pop ecx
pop ecx
inc eax
mov dword [ebp - 0x54], eax
jne 0x4104b4
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
call fcn.0041ea20
pop ecx
inc eax
push eax
push dword [ebp - 0x54]
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
jmp 0x4104e6
mov byte [ebp - 0x5d], 0
push 1
lea eax, [ebp - 0x5d]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
push dword [ecx + eax + 4]
call fcn.0041ea20
pop ecx
inc eax
push eax
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
push dword [ecx + eax + 4]
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
push 4
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
lea eax, [ecx + eax + 0x110]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
lea eax, [ecx + eax + 0xdc]
push eax
call fcn.0041ea20
pop ecx
inc eax
push eax
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
lea eax, [ecx + eax + 0xdc]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
and dword [ebp - 0x5c], 0
jmp 0x410596
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ecx + eax + 0x10]
jge 0x4105f1
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp - 0x5c]
push dword [ecx + eax*4 + 0x14]
call fcn.0041ea20
pop ecx
inc eax
push eax
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp - 0x5c]
push dword [ecx + eax*4 + 0x14]
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
jmp 0x41058f
push 4
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
lea eax, [ecx + eax + 0x11c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
push dword [ecx + eax + 0x11c]
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
push dword [ecx + eax + 0x118]
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
push 4
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
lea eax, [ecx + eax + 0x128]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
cmp dword [ecx + eax + 0x128], 0
je 0x4106bd
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
push dword [ecx + eax + 0x128]
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
push dword [ecx + eax + 0x124]
lea eax, [ebp - 0x48]
push eax
call fcn.00410fef
add esp, 0xc
mov eax, dword [ebp - 0x58]
imul eax, eax, 0x130
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov dword [ecx + eax + 0x110], 0xffffffef
jmp 0x410427
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
jmp 0x410417
cmp dword [ebp - 0x2c], 0
jne 0x410403
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x48]
call fcn.00408cbf
add esp, 0x10
mov eax, dword [ebp - 0x30]
and eax, 0xffff
movzx eax, ax
and eax, 0xff
mov byte [ebp - 0x37], al
cmp dword [0x4577e0], 0
je 0x41073f
push dword [0x4577e0]
call fcn.0041ea20
pop ecx
mov dword [ebp - 0x64], eax
jmp 0x410743
and dword [ebp - 0x64], 0
push dword [ebp - 0x64]
push dword [0x4577e0]
movzx eax, byte [ebp - 0x37]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x40]
push dword [ebp - 0x48]
call fcn.00408dad
add esp, 0x18
cmp dword [0x4577e0], 0
je 0x410775
movzx eax, byte [ebp - 0x38]
or eax, 1
mov byte [ebp - 0x38], al
push 0
lea eax, [ebp - 0x4c]
push eax
push 6
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410790
jmp 0x4107c2
push 0
lea eax, [ebp - 0x4c]
push eax
movzx eax, byte [ebp - 0x37]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4107ad
jmp 0x4107c2
push 0
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x48]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x34], 0
je 0x4107d1
push dword [ebp - 0x34]
call fcn.0041efe8
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp - 0x10]
call fcn.00410221
pop ecx
pop ecx
cmp dword [ebp - 0x18], 0
je 0x4107f5
push dword [ebp - 0x18]
call fcn.0041efe8
pop ecx
cmp dword [ebp - 0x14], 0
je 0x410804
push dword [ebp - 0x14]
call fcn.0041efe8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
leave
ret