Function at 0x4015e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x3b8
lea eax, [esp + 0x330]
push esi
push edi
push 0x4040
push eax
xor esi, esi
push 0x4091e0
call fcn.00403710
cmp eax, 0xffffffff
je 0x4016d6
mov ecx, dword [str.SYSTEM1X]
mov edx, dword [0x408098]
mov al, byte [0x40809c]
push pe_nt_image_headers32
push 0x4091e0
mov dword [esp + 0x18], ecx
mov ecx, dword [str..MDW]
mov dword [esp + 0x1c], edx
mov dl, byte [0x408090]
mov byte [esp + 0x20], al
lea eax, [esp + 0x1c0]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], dl
push eax
call fcn.00403aa0
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c8]
push edx
call fcn.00403c40
add esp, 0x14
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00403ba0
add esp, 0x14
lea edx, [esp + 0x338]
push 0x200
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1bc]
push edx
call fcn.00403b60
add esp, 8
test eax, eax
jne 0x4016d6
mov esi, 1
push 0x4091e0
call fcn.004033e0
add esp, 4
test eax, eax
jne 0x401874
cmp dword [esp + 0x3c4], 0
je 0x4017b8
mov edi, 0x4091e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x4091e0
push 1
push eax
mov eax, dword [0x408f58]
push str.SystemDB
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x100
lea ecx, [esp + 0xbc]
push ecx
mov edx, dword [0x408f54]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x21c
push edx
call esi
lea edi, [esp + 0xb8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push 0x100
dec ecx
lea eax, [esp + ecx + 0xbc]
push eax
mov ecx, dword [0x408f54]
push 0x21e
push ecx
call esi
push 0x100
lea edx, [esp + 0x23c]
push edx
mov eax, dword [0x408f54]
push 0x220
push eax
call esi
cmp dword [0x408f60], 0
jne 0x40188d
push 0
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0xc0]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
add esp, 0x3b8
ret
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea eax, [esp + 0x3c]
push eax
push 1
push 0
mov ecx, dword [0x408f58]
push str.SystemDB
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x100
lea edx, [esp + 0xbc]
push edx
mov eax, dword [0x408f54]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x21c
push eax
call esi
lea edi, [esp + 0xb8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push 0x100
dec ecx
mov edx, dword [0x408f54]
lea ecx, [esp + ecx + 0xbc]
push ecx
push 0x21f
push edx
call esi
push 0x100
lea eax, [esp + 0x23c]
push eax
mov ecx, dword [0x408f54]
push 0x220
push ecx
call esi
cmp dword [0x408f60], 0
jne 0x40188d
push 0
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0xc0]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
add esp, 0x3b8
ret
test esi, esi
je 0x40188d
lea ecx, [esp + 0x1b8]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00403b60
add esp, 8
pop edi
pop esi
add esp, 0x3b8
ret