Function at 0x457100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4826b0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4a0fe0]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x4a5a34
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x84], ebx
call fcn.00450e10
test al, al
jne 0x4573c2
push str.GlobalEpsonPrinterInstaller
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, ebx
je 0x457187
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4573c2
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push 2
push ebx
push 6
call sub.WINSPOOL.DRV_EnumPrintersW
mov edx, dword [esp + 0x1c]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
cmp ebp, ebx
je 0x4573c2
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
push ebp
push 2
push ebx
push 6
call sub.WINSPOOL.DRV_EnumPrintersW
test eax, eax
setne al
cmp al, bl
je 0x4573a8
mov eax, dword [esp + 0x20]
cmp eax, ebx
jbe 0x4573a8
lea esi, [ebp + 4]
mov dword [esp + 0x2c], eax
jmp 0x457200
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x17], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0044ff00
mov eax, dword [esi]
push ebx
push eax
mov byte [esp + 0x8c], 1
call fcn.00450210
add esp, 8
cmp al, bl
je 0x457374
call fcn.0044fc60
mov edi, eax
cmp edi, ebx
je 0x457374
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov word [esp + 0x74], ax
mov ecx, dword [esi]
push ecx
mov ecx, edi
call fcn.0044da00
test eax, eax
setne al
cmp al, bl
je 0x457364
lea edx, [esp + 0x17]
push edx
push 0x13
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.0044da40
test eax, eax
setne al
cmp al, bl
je 0x457364
xor eax, eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x40], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], 0xf000c
call fcn.0044ff20
test eax, eax
setne al
cmp al, bl
je 0x457364
lea ecx, [esp + 0x28]
push ecx
push 0xfffffffffffffffe
lea edx, [esp + 0x58]
push edx
call fcn.00449280
cmp eax, ebx
jl 0x457364
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
push ecx
push 1
push str.MEPSerialID
push edx
call sub.WINSPOOL.DRV_SetPrinterDataW
cmp eax, ebx
jne 0x457364
mov edx, dword [esp + 0x18]
xor eax, eax
cmp byte [esp + 0x17], bl
push 4
lea ecx, [esp + 0x28]
push ecx
setne al
push 4
push str.MEPIsSerialID
push edx
mov dword [esp + 0x38], eax
call sub.WINSPOOL.DRV_SetPrinterDataW
cmp eax, ebx
jne 0x457364
mov ecx, dword [esi]
lea eax, [esp + 0x50]
push eax
push ecx
push str.____PrinterName_s_SerialID_s_n
call fcn.00401010
mov eax, dword [esi]
lea edx, [esp + 0x5c]
push edx
push eax
push str.PrinterName_s_SerialID_s_n
push ebx
call fcn.00448d80
add esp, 0x1c
mov ecx, edi
call fcn.00456f20
push edi
call fcn.00464923
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x45738a
push eax
lea ecx, [esp + 0x44]
call fcn.00450190
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], bl
call fcn.0044fd60
add esi, 0x54
sub dword [esp + 0x2c], 1
jne 0x457200
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x84], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4573ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0046d626
add esp, 0x74
ret