Function at 0x403990
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x210
lea ecx, [esp + 0x110]
push eax
push str.SystemCurrentControlSetControlPrintMonitors
push str._s_sPorts
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 0x110]
push edx
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403d7e
mov eax, dword [0x411c34]
push esi
xor esi, esi
test eax, eax
jle 0x403d66
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [0x411c30]
lea ecx, [esp + 0x1c]
mov eax, dword [edx + esi*4]
push eax
push ecx
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push 0x20006
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403d55
mov eax, dword [0x411c30]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 0x104]
push edx
push str.PrintMode
push eax
call fcn.00403460
mov ecx, dword [0x411c30]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + 0x108]
push eax
push str.CmdTmout
push ecx
call fcn.00403460
mov edx, dword [0x411c30]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 0x10c]
push ecx
push str.DatTmout
push edx
call fcn.00403460
mov eax, dword [0x411c30]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x34]
mov edx, dword [ecx + 0x380]
push edx
push str.NonSpool
push eax
call fcn.00403460
mov ecx, dword [0x411c30]
add esp, 0x30
mov eax, dword [ecx + esi*4]
mov ecx, dword [eax + 0x104]
test ecx, ecx
jne 0x403b9f
mov edx, dword [eax + 0x110]
mov eax, dword [esp + 0x10]
push edx
push str.PortNum
push eax
call fcn.00403460
mov ecx, dword [0x411c30]
add esp, 0xc
mov eax, dword [ecx + esi*4]
add eax, 0x128
test eax, eax
je 0x403b44
push eax
call ebx
mov edx, dword [0x411c30]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [edx + esi*4]
add eax, 0x128
push eax
push 1
push 0
push str.HostName
push ecx
call edi
mov edx, dword [0x411c30]
mov eax, dword [edx + esi*4]
add eax, 0x169
test eax, eax
je 0x403b79
push eax
call ebx
push eax
mov eax, dword [0x411c30]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
add ecx, 0x169
push ecx
push 1
push 0
push str.PortName
push edx
call edi
mov eax, dword [0x411c30]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 0x384]
push edx
push str.UseSCPorts
push eax
call fcn.00403460
add esp, 0xc
jmp 0x403d4a
mov ecx, dword [eax + 0x114]
mov edx, dword [esp + 0x10]
push ecx
push str.BASE64
push edx
call fcn.00403460
mov eax, dword [0x411c30]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx + 0x118]
push edx
push str.Chunked
push eax
call fcn.00403460
mov ecx, dword [0x411c30]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x28]
mov eax, dword [edx + 0x11c]
push eax
push str.MaxChunk
push ecx
call fcn.00403460
mov edx, dword [0x411c30]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax + 0x120]
push ecx
push str.ProxyNum
push edx
call fcn.00403460
mov eax, dword [0x411c30]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x40]
mov edx, dword [ecx + 0x124]
push edx
push str.UseProxy
push eax
call fcn.00403460
mov ecx, dword [0x411c30]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x4c]
mov eax, dword [edx + 0x388]
push eax
push str.JobSheets
push ecx
call fcn.00403460
mov edx, dword [0x411c30]
add esp, 0x48
mov eax, dword [edx + esi*4]
add eax, 0x18a
test eax, eax
je 0x403c86
push eax
call ebx
push eax
mov eax, dword [0x411c30]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
add ecx, 0x18a
push ecx
push 1
push 0
push str.Language
push edx
call edi
mov eax, dword [0x411c30]
mov eax, dword [eax + esi*4]
add eax, 0x193
test eax, eax
je 0x403cbb
push eax
call ebx
mov ecx, dword [0x411c30]
push eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + esi*4]
add edx, 0x193
push edx
push 1
push 0
push str.ProxyName
push eax
call edi
mov ecx, dword [0x411c30]
mov eax, dword [ecx + esi*4]
add eax, 0x298
test eax, eax
je 0x403cf0
push eax
call ebx
mov edx, dword [0x411c30]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [edx + esi*4]
add eax, 0x298
push eax
push 1
push 0
push 0x40e950
push ecx
call edi
mov edx, dword [0x411c30]
mov eax, dword [edx + esi*4]
add eax, 0x2f9
test eax, eax
je 0x403d25
push eax
call ebx
push eax
mov eax, dword [0x411c30]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
add ecx, 0x2f9
push ecx
push 1
push 0
push str.UserName
push edx
call edi
mov eax, dword [0x411c30]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax + 0x37c]
add eax, 0x33a
push ecx
push eax
push 3
push 0
push str.PassWord
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x411c34]
inc esi
cmp esi, eax
jl 0x403a0d
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x210
ret
mov eax, 1
add esp, 0x210
ret