Function at 0x404c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x48ae5c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x100
push 1
mov dword [ebp - 0x30], ebx
call fcn.0044d510
mov edi, eax
push str._PJL_USTATUS_DEVICE_r_n
lea eax, [edi + 0xc]
push 0xde
xor esi, esi
push eax
mov dword [ebp - 0x38], edi
mov dword [edi], 3
mov dword [edi + 4], esi
mov dword [edi + 8], 0x22
call fcn.0044d0da
add esp, 0x14
test eax, eax
jne 0x405076
mov dword [ebp - 0x3c], esi
cmp dword [ebx + 0xab0], esi
jle 0x405039
lea esi, [eax + 6]
jmp 0x404cd0
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax + 0xaa8]
cmp word [esi + ebx - 2], 6
jne 0x404f12
movsx eax, word [esi + ebx]
dec eax
js 0x404f12
mov ecx, dword [ebp - 0x30]
cmp eax, dword [ecx + 0xce0]
jge 0x404f12
shl eax, 8
mov edx, ecx
lea edi, [eax + edx + 0xce4]
mov ecx, str.Bridge_Cover
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404d52
test dl, dl
je 0x404d4e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404d52
add eax, 2
add ecx, 2
test dl, dl
jne 0x404d32
xor eax, eax
jmp 0x404d57
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404d69
mov eax, 0x29
mov word [esi + ebx], ax
jmp 0x404f12
mov ecx, str.SMT_Top_Cover
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404d90
test dl, dl
je 0x404d8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404d90
add eax, 2
add ecx, 2
test dl, dl
jne 0x404d70
xor eax, eax
jmp 0x404d95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404da1
lea ecx, [eax + 0x2a]
jmp 0x404f0e
mov ecx, str.SMT_Side_Cover
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404dc8
test dl, dl
je 0x404dc4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404dc8
add eax, 2
add ecx, 2
test dl, dl
jne 0x404da8
xor eax, eax
jmp 0x404dcd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404ddf
mov edx, 0x2b
mov word [esi + ebx], dx
jmp 0x404f12
mov ecx, str.Job_Separator_Cover
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404e06
test dl, dl
je 0x404e02
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404e06
add eax, 2
add ecx, 2
test dl, dl
jne 0x404de6
xor eax, eax
jmp 0x404e0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404e1d
mov eax, 0x2c
mov word [esi + ebx], ax
jmp 0x404f12
mov ecx, str.Upper_Left_Cover
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404e44
test dl, dl
je 0x404e40
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404e44
add eax, 2
add ecx, 2
test dl, dl
jne 0x404e24
xor eax, eax
jmp 0x404e49
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404e55
lea ecx, [eax + 0x2d]
jmp 0x404f0e
mov ecx, str.Finisher_Front_Cover
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404e80
test dl, dl
je 0x404e7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404e80
add eax, 2
add ecx, 2
test dl, dl
jne 0x404e60
xor eax, eax
jmp 0x404e85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404e97
mov edx, 0x2e
mov word [esi + ebx], dx
jmp 0x404f12
mov ecx, str.Finisher_Top_Cover
mov eax, edi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404ec0
test dl, dl
je 0x404ebc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404ec0
add eax, 2
add ecx, 2
test dl, dl
jne 0x404ea0
xor eax, eax
jmp 0x404ec5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404ed4
mov eax, 0x2f
mov word [esi + ebx], ax
jmp 0x404f12
mov ecx, str.Inner_Job_Separator_Cover
mov eax, edi
jmp 0x404ee0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404f00
test dl, dl
je 0x404efc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404f00
add eax, 2
add ecx, 2
test dl, dl
jne 0x404ee0
xor eax, eax
jmp 0x404f05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404f12
mov ecx, 0x30
mov word [esi + ebx], cx
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 0xaa8]
movsx edx, word [esi + eax + 4]
movsx ecx, word [esi + eax + 2]
push edx
movsx edx, word [esi + eax]
push ecx
movsx ecx, word [esi + eax - 2]
push edx
movsx edx, word [esi + eax - 4]
movsx eax, word [esi + eax - 6]
push ecx
mov ecx, dword [ebp - 0x3c]
push edx
push eax
push ecx
push str.ALERT_d__d__d__d__d__d__d
lea edx, [ebp - 0x2c]
push 0x28
push edx
call fcn.0044d4f2
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x100
sub ecx, dword [ebx + 8]
lea eax, [ebx + 0xc]
push ecx
push eax
mov dword [ebp - 0x34], eax
call fcn.0044d236
mov ecx, dword [edi + 0xaa8]
movzx eax, word [esi + ecx - 2]
add esp, 0x34
cmp ax, 8
jne 0x404fd4
cmp dword [edi + 0xcc4], 0
je 0x404f9f
mov eax, dword [ebp - 0x34]
mov edx, 0x100
sub edx, dword [ebx + 8]
push 0x47fce4
push edx
push eax
jmp 0x405001
mov eax, dword [edi + 0xcc0]
test eax, eax
je 0x405009
movsx ecx, word [esi + ecx]
cmp ecx, dword [edi + 0xcc8]
jne 0x404fc9
mov eax, dword [ebp - 0x34]
mov edx, 0x100
sub edx, dword [ebx + 8]
push str._EFx
push edx
push eax
jmp 0x405001
test eax, eax
je 0x405009
push 0x47fcf0
jmp 0x404ff4
cmp ax, 9
jne 0x405009
cmp dword [edi + 0xccc], 0
je 0x405009
movsx eax, word [esi + ecx]
cmp eax, dword [edi + 0xcdc]
jne 0x405009
push 0x47fcf4
mov edx, dword [ebp - 0x34]
mov ecx, 0x100
sub ecx, dword [ebx + 8]
push ecx
push edx
call fcn.0044d236
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov eax, 0x100
sub eax, dword [ebx + 8]
push 0x47fcf8
push eax
push ecx
call fcn.0044d236
mov eax, dword [ebp - 0x3c]
inc eax
add esp, 0xc
add esi, 0xc
mov dword [ebp - 0x3c], eax
cmp eax, dword [edi + 0xab0]
jl 0x404cd0
mov esi, dword [ebp - 0x38]
mov edx, 0x100
sub edx, dword [esi + 8]
push 0x47fcfc
push edx
lea edi, [esi + 0xc]
push edi
call fcn.0044d236
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
jmp 0x405060
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405060
mov ebx, dword [ebp - 0x30]
sub eax, edx
mov dword [esi + 8], eax
add eax, 0x10
mov edi, esi
jmp 0x405079
mov eax, dword [ebp - 0x38]
mov edx, dword [ebx + 0xa98]
push 0
lea ecx, [ebp - 0x40]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
jne 0x4050c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.0044ca3f
mov eax, dword [ebx + 8]
add esp, 4
push esi
push esi
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ca30
mov esp, ebp
pop ebp
ret
push edi
call fcn.0044ca3f
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ca30
mov esp, ebp
pop ebp
ret