Function at 0x403490
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x318
lea ecx, [esp + 0x218]
push eax
push str.SystemCurrentControlSetControlPrintMonitors
push str._s_sPorts
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x218]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403979
mov edx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push eax
push edx
mov dword [0x411c34], 1
call edi
test eax, eax
jne 0x403528
mov eax, dword [0x411c34]
push 0x104
mov ecx, eax
inc eax
mov dword [0x411c34], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push ecx
call edi
test eax, eax
je 0x403505
mov ecx, dword [0x411c34]
mov eax, dword [esp + 0x328]
dec ecx
test eax, eax
mov dword [0x411c34], ecx
je 0x403960
mov edx, ecx
lea eax, [edx*4]
push eax
call fcn.00407ed5
mov dword [0x411c30], eax
mov eax, dword [0x411c34]
add esp, 4
xor esi, esi
test eax, eax
jle 0x403586
push 0x38c
call fcn.00407ed5
mov ecx, dword [0x411c30]
add esp, 4
mov dword [ecx + esi*4], eax
mov eax, dword [0x411c34]
inc esi
cmp esi, eax
jl 0x403566
xor esi, esi
test eax, eax
jle 0x403960
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
mov ebp, 0x41
jmp 0x4035a5
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push 0x104
push edx
push esi
push eax
call edi
lea ecx, [esp + 0x228]
lea edx, [esp + 0x124]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x124]
push 0x40e910
push eax
call edi
lea ecx, [esp + 0x20]
lea edx, [esp + 0x124]
push ecx
push edx
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x124]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403950
mov eax, dword [0x411c30]
lea edx, [esp + 0x20]
push edx
mov ecx, dword [eax + esi*4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [0x411c30]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + esi*4]
add eax, 0x104
push eax
push str.PrintMode
push ecx
call fcn.00403410
mov edx, dword [0x411c30]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
add eax, 0x10c
push eax
push str.DatTmout
push ecx
call fcn.00403410
mov edx, dword [0x411c30]
mov ecx, dword [esp + 0x28]
mov eax, dword [edx + esi*4]
add eax, 0x108
push eax
push str.CmdTmout
push ecx
call fcn.00403410
add esp, 0x24
test eax, eax
jne 0x4036a2
mov edx, dword [0x411c30]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax + 0x10c]
mov dword [eax + 0x108], ecx
mov edx, dword [0x411c30]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + esi*4]
add eax, 0x110
push eax
push str.PortNum
push ecx
call fcn.00403410
mov edx, dword [0x411c30]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
add eax, 0x380
push eax
push str.NonSpool
push ecx
call fcn.00403410
mov ecx, dword [0x411c30]
add esp, 0x18
mov eax, dword [ecx + esi*4]
mov edx, dword [eax + 0x104]
test edx, edx
jne 0x40376f
mov dword [esp + 0x14], ebp
mov eax, dword [ecx + esi*4]
lea edx, [esp + 0x14]
add eax, 0x128
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.HostName
push edx
call ebx
mov ecx, dword [0x411c30]
mov dword [esp + 0x14], 0x21
lea eax, [esp + 0x14]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x10]
push eax
add edx, 0x169
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.PortName
push ecx
call ebx
mov edx, dword [0x411c30]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + esi*4]
add eax, 0x384
push eax
push str.UseSCPorts
push ecx
call fcn.00403410
add esp, 0xc
jmp 0x403945
mov edx, dword [esp + 0x10]
add eax, 0x114
push eax
push str.BASE64
push edx
call fcn.00403410
mov eax, dword [0x411c30]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
add ecx, 0x118
push ecx
push str.Chunked
push edx
call fcn.00403410
mov eax, dword [0x411c30]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + esi*4]
add ecx, 0x11c
push ecx
push str.MaxChunk
push edx
call fcn.00403410
mov eax, dword [0x411c30]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax + esi*4]
add ecx, 0x120
push ecx
push str.ProxyNum
push edx
call fcn.00403410
mov eax, dword [0x411c30]
mov edx, dword [esp + 0x40]
mov ecx, dword [eax + esi*4]
add ecx, 0x124
push ecx
push str.UseProxy
push edx
call fcn.00403410
mov eax, dword [0x411c30]
mov edx, dword [esp + 0x4c]
mov ecx, dword [eax + esi*4]
add ecx, 0x388
push ecx
push str.JobSheets
push edx
call fcn.00403410
mov ecx, dword [0x411c30]
add esp, 0x48
mov dword [esp + 0x14], 9
lea eax, [esp + 0x14]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x10]
push eax
add edx, 0x18a
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.Language
push ecx
call ebx
mov edx, dword [0x411c30]
mov ecx, ebp
xor eax, eax
mov edi, dword [edx + esi*4]
add edi, 0x193
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, dword [0x411c30]
mov dword [esp + 0x14], 0x105
lea eax, [esp + 0x14]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x10]
push eax
add edx, 0x193
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.ProxyName
push ecx
call ebx
mov eax, dword [0x411c30]
mov dword [esp + 0x14], 0x61
lea edx, [esp + 0x14]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x10]
push edx
add ecx, 0x298
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 0x40e950
push eax
call ebx
mov edx, dword [0x411c30]
mov ecx, 0x10
xor eax, eax
mov edi, dword [edx + esi*4]
add edi, 0x2f9
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, dword [0x411c30]
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x14]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x10]
push eax
add edx, 0x2f9
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.UserName
push ecx
call ebx
mov eax, dword [0x411c30]
mov dword [esp + 0x14], ebp
lea edx, [esp + 0x14]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x10]
push edx
add ecx, 0x33a
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.PassWord
push eax
call ebx
mov ecx, dword [0x411c30]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + esi*4]
mov dword [edx + 0x37c], eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x411c34]
inc esi
cmp esi, eax
jl 0x40359f
pop ebp
pop ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x318
ret
mov eax, 1
add esp, 0x318
ret