Function at 0x419059
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
call fcn.0040883f
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x419077
xor eax, eax
jmp 0x41930c
mov eax, dword [ebp + 0xc]
add eax, 6
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x4190b3
mov edx, dword [ebp - 0x14]
push edx
push str._PSU__Write_Size_:__d
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
push edx
call fcn.004e8de9
add esp, 4
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0x1b
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov byte [eax], 0x23
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
and edx, 0xffff
sar edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov byte [eax], dl
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
and edx, 0xffff
sar edx, 0x10
and edx, 0xff
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov byte [eax], dl
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
and edx, 0xffff
sar edx, 8
and edx, 0xff
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov byte [eax], dl
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
and edx, 0xff
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov byte [eax], dl
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
push ecx
call fcn.004cfe40
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004089d2
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x4191f1
push str._PSU____Send_Button___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0044ce83
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
push 0x51b2e0
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x10], 0
jne 0x41921b
call fcn.00408962
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.004e8e12
add esp, 4
xor eax, eax
jmp 0x41930c
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.004cf390
add esp, 0xc
push 8
mov edx, dword [ebp - 8]
push edx
call fcn.00408a86
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4192c8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x1b
jne 0x4192c8
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx + 1]
cmp eax, 0x23
jne 0x4192c8
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x41927b
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0044ce83
add esp, 8
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx + 7]
test edx, edx
jne 0x4192a7
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x41929e
push str._PSU__XML_SetPrinterInfo_Success___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 1
jmp 0x4192c6
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x4192bf
push str._PSU__XML_SetPrinterInfo_fail___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
jmp 0x419301
xor edx, edx
mov dx, word [0x539af6]
test edx, edx
je 0x4192e0
push 0x51b344
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00408962
mov eax, dword [ebp - 8]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.004e8e12
add esp, 4
xor eax, eax
jmp 0x41930c
call fcn.00408962
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret