Function at 0x45f6d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b34c
mov eax, dword fs:[0]
push eax
mov eax, 0xf95c
call fcn.00561ec0
mov eax, dword [0x5f01b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 1
mov dword [ebp - 0x7cb0], esi
mov ebx, edx
mov dword [ebp - 0x7cc0], 0
call fcn.0045ff40
lea edi, [esi + 0x300]
push ebx
mov ecx, edi
call fcn.00468ce0
mov ecx, edi
call fcn.00469560
xor ecx, ecx
cmp dword [ebx + 8], ecx
jle 0x45fc3d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x98], eax
mov eax, dword [edx]
mov dword [esi + 0x9c], eax
mov dword [ebp - 0x7cc8], 0x64
mov dword [ebp - 0x7cb4], ecx
cmp dword [esi + 0x308], ecx
jle 0x45fc0d
mov dword [ebp - 0x7cac], ecx
jmp 0x45f786
mov ecx, dword [ebp - 0x7cb4]
test ecx, ecx
js 0x45fc38
cmp ecx, dword [edi + 8]
jge 0x45fc38
mov edi, dword [edi + 4]
add edi, dword [ebp - 0x7cac]
lea ebx, [ebp - 0x7ca8]
push edi
call fcn.0045ef90
xor edi, edi
mov ebx, 1
mov dword [ebp - 4], edi
cmp dword [ebp - 0x7c7c], ebx
jne 0x45f89a
push 0xc8
lea eax, [ebp - 0x3e50]
push edi
push eax
call fcn.005610a0
mov ecx, dword [ebp - 0x7c80]
add esp, 0xc
push ecx
lea edx, [ebp - 0x3e1a]
push 0x100
push edx
call fcn.0055fc32
add esp, 0xc
lea eax, [ebp - 0x3e50]
push eax
call fcn.00458590
cmp al, bl
jne 0x45f863
lea ecx, [ebp - 0x7cb5]
push ecx
lea edx, [ebp - 0x3e50]
lea ecx, [ebp - 0x7c80]
call fcn.00458660
cmp al, bl
jne 0x45f863
mov eax, dword [ebp - 0x7cc8]
mov dword [ebp - 0x3e50], eax
add eax, ebx
mov dword [ebp - 0x7cc8], eax
mov eax, dword [ebp - 0x7ca8]
mov dword [ebp - 0x18], 2
cmp dword [eax - 0xc], edi
je 0x45f8e8
push eax
push str.__Printer_Name____s_n
push 0x40000
push 0x5f2054
call fcn.00433010
mov edx, dword [ebp - 0x18]
push edx
jmp 0x45f8cb
mov eax, dword [ebp - 0x7ca8]
mov dword [ebp - 0x3e50], 0xffffffff
mov dword [ebp - 0x18], 4
cmp dword [eax - 0xc], edi
je 0x45f8e8
push eax
push str.__Printer_Name____s_n
push 0x40000
push 0x5f2054
call fcn.00433010
mov eax, dword [ebp - 0x18]
push eax
jmp 0x45f8cb
mov eax, dword [ebp - 0x7ca8]
mov dword [ebp - 0x3e50], 0xffffffff
mov dword [ebp - 0x18], ebx
cmp dword [eax - 0xc], edi
je 0x45f8e8
push eax
push str.__Printer_Name____s_n
push 0x40000
push 0x5f2054
call fcn.00433010
mov ecx, dword [ebp - 0x18]
push ecx
push str.__APPLI_VERSION_STATE___d_n
push 0x40000
push 0x5f2054
call fcn.00433010
mov eax, dword [ebp - 0x7ca8]
add esp, 0x20
cmp dword [ebp - 0x28], edi
jne 0x45fb37
push str._Firm
lea edx, [ebp - 0x7ca8]
push edx
lea eax, [ebp - 0x7ccc]
push eax
call fcn.00404ea0
add esp, 0xc
push str._KillFirm
lea ecx, [ebp - 0x7ca8]
push ecx
lea edx, [ebp - 0x7cc4]
push edx
mov byte [ebp - 4], 1
call fcn.00404ea0
add esp, 0xc
push 0xd18
mov byte [ebp - 4], 2
call fcn.0046ac74
mov esi, eax
add esp, 4
cmp esi, edi
je 0x45f97e
push 0xd00
lea eax, [esi + 4]
push edi
mov dword [esi], vtable.CFirmUpdateFromCom.0
push eax
mov dword [esi + 0xd08], edi
call fcn.005610a0
add esp, 0xc
mov dword [esi + 0xd0c], edi
mov dword [esi + 0xd04], 0xffffffff
mov dword [esi + 0xd10], edi
mov dword [esi + 0xd14], edi
jmp 0x45f980
xor esi, esi
mov ecx, dword [ebp - 0x7ccc]
push ecx
push ebx
push ebx
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
call esi
mov edx, dword [ebp - 0x7cc4]
push edx
push edi
push ebx
push edi
mov dword [ebp - 0x24], eax
call esi
mov ecx, dword [ebp - 0x7cb0]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov ebx, eax
call fcn.00432270
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x7c88]
mov edx, dword [esi + 0xd08]
mov dword [ebp - 0x7cbc], 0
mov dword [esi + 0xd04], ecx
mov dword [esi + 0xd0c], eax
mov dword [esi + 0xd10], edi
mov dword [esi + 0xd14], ebx
test edx, edx
jne 0x45fa21
push edx
push 4
push edx
push edx
push esi
push 0x461350
call fcn.0046b7d1
test eax, eax
je 0x45fa21
mov dword [eax + 0x28], 0
mov dword [esi + 0xd08], eax
mov eax, dword [eax + 0x2c]
push eax
mov dword [ebp - 0x7cbc], 1
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x7ca8]
mov dword [ebp - 0x1c], 1
cmp dword [eax - 0xc], 0
je 0x45fa64
push eax
push str.__Printer_Name____s_n
push 0x40000
push 0x5f2054
call fcn.00433010
mov ecx, dword [ebp - 0x1c]
push ecx
push str.__PRINTER_STATE___d_______0_:_PRINTER_STATE_READY___1_:_PRINTER_STATE_SEND_DEVICE___2_:_PRINTER_STATE_DO_NOT_SEND_DEVICE___3_:_PRINTER_STATE_GET_INFO_FROM_DEVICE___4_:_PRINTER_STATE_SEND_DEVICE_BUT_TIMEOUT___5_:_PRINTER_STATE_GET_PRINTER_INFORMATION_FROM_SERVER___6_:_PRINTER_STATE_DO_NOT_GET_PRINTER_INFORMATION_FROM_DEVICE___7_:_PRINTER_STATE_DO_NOT_GET_PRINTER_INFORMATION_FROM_SERVER___8_:_PRINTER_STATE_DO_NOT_GET_PRINTER_RIGHT_INFORMATION_FROM_SERVER___9_:_PRINTER_STATE_ERROR___n
push 0x40000
push 0x5f2054
call fcn.00433010
add esp, 0x20
cmp dword [ebp - 0x7cbc], 0
jne 0x45fae9
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x45fa7c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x45fa8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
test eax, eax
je 0x45fa9f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x7ca8]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 6
cmp dword [eax - 0xc], ecx
je 0x45fae9
push eax
push str.__Printer_Name____s_n
push 0x40000
push 0x5f2054
call fcn.00433010
mov ecx, dword [ebp - 0x1c]
push ecx
push str.__PRINTER_STATE___d_______0_:_PRINTER_STATE_READY___1_:_PRINTER_STATE_SEND_DEVICE___2_:_PRINTER_STATE_DO_NOT_SEND_DEVICE___3_:_PRINTER_STATE_GET_INFO_FROM_DEVICE___4_:_PRINTER_STATE_SEND_DEVICE_BUT_TIMEOUT___5_:_PRINTER_STATE_GET_PRINTER_INFORMATION_FROM_SERVER___6_:_PRINTER_STATE_DO_NOT_GET_PRINTER_INFORMATION_FROM_DEVICE___7_:_PRINTER_STATE_DO_NOT_GET_PRINTER_INFORMATION_FROM_SERVER___8_:_PRINTER_STATE_DO_NOT_GET_PRINTER_RIGHT_INFORMATION_FROM_SERVER___9_:_PRINTER_STATE_ERROR___n
push 0x40000
push 0x5f2054
call fcn.00433010
add esp, 0x20
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x7cc4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45fb0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x7ccc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fb83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45fb83
mov ecx, dword [ebp - 0x24]
cmp ecx, edi
je 0x45fb4b
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x7ca8]
mov dword [ebp - 0x1c], ebx
cmp dword [eax - 0xc], edi
je 0x45fb83
push eax
push str.__Printer_Name____s_n
push 0x40000
push 0x5f2054
call fcn.00433010
mov ecx, dword [ebp - 0x1c]
push ecx
push str.__PRINTER_STATE___d_______0_:_PRINTER_STATE_READY___1_:_PRINTER_STATE_SEND_DEVICE___2_:_PRINTER_STATE_DO_NOT_SEND_DEVICE___3_:_PRINTER_STATE_GET_INFO_FROM_DEVICE___4_:_PRINTER_STATE_SEND_DEVICE_BUT_TIMEOUT___5_:_PRINTER_STATE_GET_PRINTER_INFORMATION_FROM_SERVER___6_:_PRINTER_STATE_DO_NOT_GET_PRINTER_INFORMATION_FROM_DEVICE___7_:_PRINTER_STATE_DO_NOT_GET_PRINTER_INFORMATION_FROM_SERVER___8_:_PRINTER_STATE_DO_NOT_GET_PRINTER_RIGHT_INFORMATION_FROM_SERVER___9_:_PRINTER_STATE_ERROR___n
push 0x40000
push 0x5f2054
call fcn.00433010
add esp, 0x20
lea edx, [ebp - 0x7ca8]
push edx
lea ebx, [ebp - 0xf968]
call fcn.0045ef90
mov edi, dword [ebp - 0x7cb0]
mov eax, dword [ebp - 0x7cb4]
add edi, 0x300
mov byte [ebp - 4], 3
cmp eax, dword [edi + 8]
jge 0x45fc38
mov ecx, ebx
mov ebx, dword [edi + 4]
add ebx, dword [ebp - 0x7cac]
push ecx
call fcn.0045bfc0
lea esi, [ebp - 0xf968]
call fcn.004590c0
lea esi, [ebp - 0x7ca8]
mov dword [ebp - 4], 0xffffffff
call fcn.004590c0
mov eax, dword [ebp - 0x7cb4]
mov edx, dword [ebp - 0x7cb0]
add dword [ebp - 0x7cac], 0x7c94
inc eax
mov dword [ebp - 0x7cb4], eax
cmp eax, dword [edx + 0x308]
jl 0x45f780
mov esi, edx
mov eax, 2
call fcn.0045ff40
mov eax, dword [esi + 0x20]
push 2
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x20]
push 0
push 0x9c40
push 2
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x45fc7c
call fcn.0046c980
xor eax, eax
mov dword [ebp - 0x7cc0], 1
call fcn.0045ff40
push str.__FirmUpdate_:_No_Printer_Information___n
push 0x40000
push 0x5f2054
call fcn.00433010
add esp, 0xc
push str.__FirmUpdate_:_FirmUpdate_End...__n
push 0x40000
push 0x5f2054
call fcn.00433010
add esp, 0xc
mov eax, dword [ebp - 0x7cc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055db96
mov esp, ebp
pop ebp
ret 8