Function at 0x419727
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
jmp 0x41975e
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [0x539800]
jge 0x4199fe
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a29c]
lea ecx, [eax + edx + 0x24e]
push ecx
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x24e]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4199f9
push 0x51b4c4
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x2a0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4199f9
push str.OriginalType
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x181]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4199f9
push str.OriginalType_Text
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x24e]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x419827
mov dword [ebp - 0x2c], 0x51b4f0
jmp 0x419881
push str.OriginalType_Text_Photo
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x24e]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x419855
mov dword [ebp - 0x2c], 0x51b514
jmp 0x419881
push str.OriginalType_Photo
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x24e]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x419881
mov dword [ebp - 0x2c], 0x51b534
mov dword [ebp - 8], 8
call fcn.0040883f
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41989d
xor eax, eax
jmp 0x419d76
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004089d2
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x4198fb
push 0x51b540
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0044ce83
add esp, 8
mov ecx, dword [ebp - 0x20]
push ecx
push 0x51b570
lea edx, [ebp - 0xac]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 8]
je 0x419927
xor edx, edx
mov dx, word [0x539af6]
test edx, edx
je 0x41991b
push 0x51b588
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
jmp 0x4199f4
push 8
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004cf390
add esp, 0xc
push 8
lea ecx, [ebp - 0x14]
push ecx
call fcn.00408a86
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4199d5
mov edx, dword [ebp - 0x14]
and edx, 0xff
cmp edx, 0x1b
jne 0x4199d5
mov eax, dword [ebp - 0x13]
and eax, 0xff
cmp eax, 0x23
jne 0x4199d5
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x419987
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0044ce83
add esp, 8
mov ecx, dword [ebp - 0xd]
and ecx, 0xff
test ecx, ecx
jne 0x4199b5
xor edx, edx
mov dx, word [0x539af6]
test edx, edx
je 0x4199ac
push 0x51b5b0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 1
jmp 0x4199d3
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x4199cc
push 0x51b5cc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
jmp 0x4199f4
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x4199ed
push 0x51b5e4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
call fcn.00408962
jmp 0x419755
mov dword [ebp - 0x18], 0
jmp 0x419a10
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x539800]
jge 0x419d4b
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a29c]
lea eax, [edx + ecx + 0x24e]
push eax
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x24e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x419d46
push 0x51b60c
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x419d46
push 0x51b614
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x181]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x419d46
push str.PaperSize_A4
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x24e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x419ae1
mov dword [ebp - 0xc], 0x51b630
jmp 0x419bd0
push str.PaperSize_Letter
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x24e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x419b13
mov dword [ebp - 0xc], 0x51b650
jmp 0x419bd0
push str.PaperSize_Executive
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x24e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x419b45
mov dword [ebp - 0xc], 0x51b670
jmp 0x419bd0
push str.PaperSize_JISB5
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x24e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x419b74
mov dword [ebp - 0xc], 0x51b68c
jmp 0x419bd0
push str.PaperSize_A5
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x24e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x419ba3
mov dword [ebp - 0xc], 0x51b6a8
jmp 0x419bd0
push str.PaperSize_A6
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x24e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x419bd0
mov dword [ebp - 0xc], 0x51b6c4
mov dword [ebp - 8], 8
call fcn.0040883f
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x419bec
xor eax, eax
jmp 0x419d76
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004089d2
mov dword [ebp - 0x20], eax
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x419c49
push str._PSU_____Original_Type__Write_Command__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0044ce83
add esp, 8
mov eax, dword [ebp - 0x20]
push eax
push 0x51b700
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
je 0x419c75
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x419c69
push str._PSU__Write_Cmd___fail_to_write_data
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
jmp 0x419d41
push 8
push 0
lea edx, [ebp - 0x28]
push edx
call fcn.004cf390
add esp, 0xc
push 8
lea eax, [ebp - 0x28]
push eax
call fcn.00408a86
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x419d23
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
cmp ecx, 0x1b
jne 0x419d23
mov edx, dword [ebp - 0x27]
and edx, 0xff
cmp edx, 0x23
jne 0x419d23
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x419cd5
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0044ce83
add esp, 8
mov eax, dword [ebp - 0x21]
and eax, 0xff
test eax, eax
jne 0x419d02
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x419cf9
push str._PSU__SendCmd_Success___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 1
jmp 0x419d21
xor edx, edx
mov dx, word [0x539af6]
test edx, edx
je 0x419d1a
push str._PSU__SendCmd_fail___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
jmp 0x419d41
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x419d3a
push str._PSU__XML_SetPrinterInfo_Read_fail___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
call fcn.00408962
jmp 0x419a07
cmp dword [ebp - 4], 0
je 0x419d73
mov ecx, dword [0x539800]
imul ecx, ecx, 0x138c
push ecx
mov edx, dword [0x53a2a0]
push edx
mov eax, dword [0x53a29c]
push eax
call fcn.004cfe40
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret