Function at 0x47dfa0
Capabilities:
Check for time delay via gettickcount
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4bd05b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x264]
mov edx, dword [ebp + 0x38]
xor ebx, ebx
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], 0x64
mov dword [esp + 0x2c], ebx
call fcn.0047e680
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], eax
cmp edx, ebx
jne 0x47e025
lea eax, [ebp + 0x140]
mov byte [esp + 0x1b], 3
call fcn.00479a00
mov dword [ebp + 0x34], ebx
jmp 0x47e4c5
call fcn.0047eaf0
mov esi, ebp
call fcn.0047df20
lea edi, [ebp + 0x140]
jmp 0x47e042
xor ebx, ebx
mov eax, dword [edi + 4]
push 1
push 0x4d2370
mov dword [edi + 8], eax
call fcn.00479de0
test eax, eax
je 0x47e0c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
add esi, 0x3e8
mov ecx, dword [edi + 8]
cmp ecx, dword [edi + 4]
je 0x47e0aa
xor ecx, ecx
cmp ecx, 1
jge 0x47e099
mov eax, dword [edi + 8]
mov edx, dword [edi]
mov dl, byte [eax + edx]
inc eax
mov byte [esp + ecx + 0x24], dl
mov dword [edi + 8], eax
cmp eax, dword [edi + 0xc]
jne 0x47e08d
mov dword [edi + 8], ebx
mov eax, dword [edi + 8]
inc ecx
cmp eax, dword [edi + 4]
jne 0x47e070
cmp ecx, 1
jne 0x47e0aa
cmp byte [esp + 0x24], 0x55
jne 0x47e0aa
mov dword [esp + 0x20], 1
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jae 0x47e0c2
cmp dword [esp + 0x20], ebx
je 0x47e066
push str.PRINTER_RESET_POLL
mov eax, ebp
call fcn.00480b20
mov esi, eax
cmp esi, ebx
je 0x47e0f9
push esi
call fcn.0049e31d
add esp, 4
push esi
mov ebx, eax
call fcn.0049081d
add esp, 4
test ebx, ebx
je 0x47e0f7
cmp dword [esp + 0x20], 0
je 0x47e040
xor ebx, ebx
push str.PRINTER_RESET_POLL
mov eax, ebp
call fcn.00480b20
mov esi, eax
cmp esi, ebx
je 0x47e14a
push esi
call fcn.0049e31d
add esp, 4
push esi
mov ebx, eax
call fcn.0049081d
add esp, 4
test ebx, ebx
je 0x47e148
mov ecx, dword [0x4ee750]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x5c]
cmp eax, dword [ebp + 0x174]
jne 0x47e148
push 0
mov eax, 0x4c3af8
mov ebx, 9
call fcn.0040dea0
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x47e4a7
mov eax, dword [esp + 0x28]
mov ecx, eax
shr ecx, 8
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x43], cl
mov byte [esp + 0x44], al
xor cl, cl
mov byte [esp + 0x40], 2
mov byte [esp + 0x41], 0
mov byte [esp + 0x42], dl
mov byte [esp + 0x45], 3
xor eax, eax
xor cl, byte [esp + eax + 0x40]
inc eax
cmp eax, 6
jb 0x47e181
push 7
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x4e], cl
mov byte [esp + 0x23], 0xff
call fcn.00479de0
test eax, eax
je 0x47e492
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
add ebx, 0x2710
mov eax, dword [edi + 8]
cmp eax, dword [edi + 4]
je 0x47e1d8
push 1
lea esi, [esp + 0x28]
mov ecx, edi
call fcn.00488b70
cmp eax, 1
jne 0x47e1d8
mov cl, byte [esp + 0x24]
mov byte [esp + 0x1b], cl
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jae 0x47e1f1
cmp byte [esp + 0x1b], 0xff
je 0x47e1b6
cmp byte [esp + 0x1b], 0
jne 0x47e472
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
xor eax, eax
mov ecx, esi
imul ecx, ecx, 0x64
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x47e22c
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
mov edx, eax
shr edx, 0x10
push 0x200
mov byte [esp + 0x4e], dl
mov ecx, eax
lea edx, [esp + 0x51]
shr ecx, 8
push ebx
push edx
mov byte [esp + 0x54], 2
mov byte [esp + 0x55], 1
mov byte [esp + 0x57], cl
mov byte [esp + 0x58], al
call fcn.004a38d0
mov eax, dword [esp + 0x28]
xor edx, edx
div esi
add ebx, 0x200
add esp, 0xc
mov dword [esp + 0x38], ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp dword [esp + 0x30], esi
je 0x47e323
push 1
push 0
push 0x4d2374
mov ecx, ebp
call fcn.004809b0
push 1
push 1
push str.DOWNLOADING
mov ecx, ebp
call fcn.004809b0
push 1
push esi
push str.UPGRADEFIRMWARE_PERCENT
mov ecx, ebp
call fcn.004809b0
push str.UPGRADEFIRMWARE_PERCENT
lea ecx, [esp + 0x40]
call fcn.004019b0
mov dword [esp + 0x25c], 0
mov ecx, dword [0x4ee750]
mov ecx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x5c]
mov eax, dword [eax]
cmp ecx, dword [ebp + 0x174]
jne 0x47e2ec
push 0
mov ebx, 0x12
call fcn.0040dea0
mov dword [esp + 0x25c], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47e317
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x30], esi
xor cl, cl
mov byte [esp + 0x24d], 3
xor eax, eax
nop
xor cl, byte [esp + eax + 0x48]
inc eax
cmp eax, 0x206
jb 0x47e330
mov byte [esp + 0x24e], cl
push 0x207
lea ecx, [esp + 0x4c]
push ecx
call fcn.00479de0
test eax, eax
je 0x47e48b
mov byte [esp + 0x1b], 0xff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
add ebx, 0x2710
lea ecx, [ecx]
mov edx, dword [edi + 8]
cmp edx, dword [edi + 4]
je 0x47e392
push 1
lea esi, [esp + 0x28]
mov ecx, edi
call fcn.00488b70
cmp eax, 1
jne 0x47e392
mov al, byte [esp + 0x24]
mov byte [esp + 0x1b], al
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jae 0x47e3ab
cmp byte [esp + 0x1b], 0xff
je 0x47e370
cmp byte [esp + 0x1b], 1
jne 0x47e472
mov esi, dword [esp + 0x2c]
inc dword [esp + 0x20]
sub dword [esp + 0x1c], 0xc800
sub esi, 0x200
push 0x200
push esi
push str.leftToSend___d__size___d__r_n
mov dword [esp + 0x38], esi
call fcn.00477b80
add esp, 0xc
test esi, esi
ja 0x47e220
test esi, esi
jne 0x47e479
xor cl, cl
mov byte [esp + 0x1c], 2
mov byte [esp + 0x1d], 2
mov byte [esp + 0x1e], 3
xor eax, eax
xor cl, byte [esp + eax + 0x1c]
inc eax
cmp eax, 3
jb 0x47e406
mov byte [esp + 0x1f], cl
push 4
lea ecx, [esp + 0x20]
push ecx
call fcn.00479de0
test eax, eax
je 0x47e479
mov byte [esp + 0x1b], 0xff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
add ebx, 0x2710
mov edx, dword [edi + 8]
cmp edx, dword [edi + 4]
je 0x47e459
push 1
lea esi, [esp + 0x28]
mov ecx, edi
call fcn.00488b70
cmp eax, 1
jne 0x47e459
mov al, byte [esp + 0x24]
mov byte [esp + 0x1b], al
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jae 0x47e472
cmp byte [esp + 0x1b], 0xff
je 0x47e437
cmp byte [esp + 0x1b], 2
je 0x47e4bc
lea eax, [ebp + 0x140]
xor ebx, ebx
call fcn.00479a00
mov dword [ebp + 0x34], ebx
jmp 0x47e4c5
mov byte [esp + 0x1b], 0xa
jmp 0x47e479
lea eax, [ebp + 0x140]
mov byte [esp + 0x1b], 0xa
call fcn.00479a00
mov dword [ebp + 0x34], ebx
jmp 0x47e4c5
lea eax, [ebp + 0x140]
mov byte [esp + 0x1b], 0xb
call fcn.00479a00
mov dword [ebp + 0x34], ebx
jmp 0x47e4c5
mov dword [ebp + 0x34], 1
xor ebx, ebx
mov eax, dword [ebp + 0x38]
cmp eax, ebx
je 0x47e4d8
push eax
call fcn.0049081d
add esp, 4
mov dword [ebp + 0x38], ebx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x47e4e9
push eax
call fcn.0049081d
add esp, 4
movzx ecx, byte [esp + 0x1b]
push 1
push ecx
push str.FIRMWARE_UPDATE_RESULT
mov ecx, ebp
mov dword [ebp + 0x3c], ebx
call fcn.004809b0
push 1
push ebx
push 0x4c484c
mov ecx, ebp
call fcn.004809b0
push 1
push ebx
push str.UPGRADEFIRMWARE_PERCENT
mov ecx, ebp
call fcn.004809b0
push 1
push 1
push 0x4d2374
mov ecx, ebp
call fcn.004809b0
push 1
push ebx
push str.DOWNLOADING
mov ecx, ebp
call fcn.004809b0
mov edx, dword [0x4ee750]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x5c]
cmp ecx, dword [ebp + 0x174]
jne 0x47e563
push ebx
mov eax, 0x4c3af8
mov ebx, 0x12
call fcn.0040dea0
xor ebx, ebx
mov edx, dword [0x4ee750]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x5c]
cmp ecx, dword [ebp + 0x174]
jne 0x47e587
push ebx
mov eax, str.PRINTER_UPDATE_STATUS
mov ebx, 0xd
call fcn.0040dea0
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.0049dc2a
add esp, 0x24c
ret 4