Function at 0x403550
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4374d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
push edi
mov eax, dword [0x4495ec]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
push str.To_GoldGrid_Document
lea ecx, [esp + 0x18]
call fcn.00404560
push str._Convert
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0
call fcn.00404560
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x34], 1
cmp dword [eax + 4], 0
mov ebp, 1
mov dword [esp + 0x1c], ebp
je 0x4035c1
mov eax, str.Windows_x64
mov dword [esp + 0x28], str.gdmmon64.dll
jmp 0x4035ce
mov eax, str.Windows_NT_x86
mov dword [esp + 0x28], str.gdmmon.dll
cmp byte [esp + 0x40], 0
mov dword [esp + 0x20], str.DocumentMonitor
mov dword [esp + 0x24], eax
jne 0x4037c3
lea ecx, [esp + 0x20]
push ecx
push 2
push 0
call sub.WINSPOOL.DRV_AddMonitorW
test eax, eax
je 0x4037c3
lea edx, [esp + 0x18]
push edx
push str.SYSTEMCurrentControlSetControlPrintMonitorsDocumentMonitorPortsDocument_Maker:
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4037d4
lea esi, [esp + 0x40]
call fcn.00401850
push str.DocumentMaker.exe
mov ecx, esi
mov byte [esp + 0x38], 2
call fcn.00404190
mov eax, dword [esp + 0x40]
cmp dword [eax - 4], ebp
mov esi, dword [eax - 0xc]
jle 0x40364e
mov eax, esi
push eax
lea ecx, [esp + 0x44]
call fcn.00404280
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
lea ecx, [esi + esi + 1]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ecx
push eax
push ebp
push 0
push str.Command
push edx
call esi
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], ebp
mov edi, dword [eax - 0xc]
jle 0x403685
mov eax, edi
push eax
lea ecx, [esp + 0x18]
call fcn.00404280
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ecx, [edi + edi + 1]
push ecx
push eax
push ebp
push 0
push str.Description
push edx
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], ebp
mov edi, dword [eax - 0xc]
jle 0x4036b6
mov eax, edi
push eax
lea ecx, [esp + 0x14]
call fcn.00404280
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
lea ecx, [edi + edi + 1]
push ecx
push eax
push ebp
push 0
push str.Arguments
push edx
call esi
mov ecx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x20]
push eax
push 4
push 0
push str.RunUser
push ecx
call esi
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x4036ee
xor eax, eax
jmp 0x403708
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4036f3
sub eax, esi
sar eax, 1
js 0x4037b9
cmp eax, dword [edx - 8]
jg 0x4037b9
mov dword [edx - 0xc], eax
mov edx, dword [esp + 0x40]
mov word [edx + eax*2], 0
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x40372a
xor eax, eax
jmp 0x403741
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403730
sub eax, esi
sar eax, 1
js 0x4037b9
cmp eax, dword [edx - 8]
jg 0x4037b9
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], 0
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x40375f
xor eax, eax
jmp 0x403775
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403764
sub eax, esi
sar eax, 1
js 0x4037b9
cmp eax, dword [edx - 8]
jg 0x4037b9
mov dword [edx - 0xc], eax
mov edx, dword [esp + 0x14]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4037d4
push 0x80070057
call fcn.00404330
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ecx
push edx
push 0
call sub.WINSPOOL.DRV_DeleteMonitorW
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret 8