Function at 0x48e180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bc45b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10c]
push 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov esi, edx
call fcn.004907ee
add esp, 4
push 0x22
mov dword [esp + 0x28], eax
call fcn.00490828
mov dword [esp + 0x1c], eax
mov eax, 0x20
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
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
add esp, 4
xor eax, eax
mov word [esp + 0x70], ax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48e223
sub eax, edx
sar eax, 1
cmp eax, 0x10
jbe 0x48e23e
mov eax, 0x10
jmp 0x48e252
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48e243
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x54]
push esi
push edx
call fcn.004a38d0
mov eax, dword [0x4ee750]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 0x54]
sub ecx, dword [eax + 0x50]
add esp, 0xc
xor ebx, ebx
test ecx, 0xfffffffc
jle 0x48e42c
add eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4ee750]
mov esi, dword [edx + 0x1c]
mov eax, dword [esi + 0x54]
sub eax, dword [esi + 0x50]
inc dword [0x4ee7c8]
sar eax, 2
cmp ebx, eax
jae 0x48e3e9
mov ecx, dword [esi + 0x54]
sub ecx, dword [esi + 0x50]
sar ecx, 2
cmp ebx, ecx
jb 0x48e2bc
call fcn.004a0b05
mov edx, dword [esi + 0x50]
mov ebp, dword [edx + ebx*4]
test ebp, ebp
je 0x48e3e9
lea edi, [ebp + 0x1c0]
test edi, edi
je 0x48e2e1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x4ee7c4]
mov eax, dword [0x4ee750]
mov eax, dword [eax + 0x1c]
add eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c8], 1
jns 0x48e309
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
mov eax, dword [ebp + 0x1b4]
test eax, eax
je 0x48e3a5
cmp dword [eax + 0x10], 0
setne al
test al, al
je 0x48e3a5
mov ecx, dword [ebp + 0x248]
sub ecx, dword [ebp + 0x244]
xor esi, esi
test ecx, 0xfffffffc
jle 0x48e3d2
mov edx, dword [ebp + 0x248]
sub edx, dword [ebp + 0x244]
sar edx, 2
cmp esi, edx
jb 0x48e358
call fcn.004a0b05
mov eax, dword [ebp + 0x244]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x18]
push eax
push 0x4cd37c
call fcn.0040a1c0
mov eax, dword [esp + 0x20]
push 0x10
lea edx, [esp + 0x5c]
push edx
push eax
call fcn.0049ed39
add esp, 0x14
test eax, eax
je 0x48e4ab
mov ecx, dword [ebp + 0x248]
sub ecx, dword [ebp + 0x244]
inc esi
sar ecx, 2
cmp esi, ecx
jl 0x48e340
jmp 0x48e3d2
push ebp
call fcn.0047ec00
mov esi, eax
test esi, esi
je 0x48e3d2
push 0x10
lea edx, [esp + 0x54]
push edx
push esi
call fcn.0049ed39
add esp, 0xc
test eax, eax
je 0x48e492
push esi
call fcn.0049081d
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c4], 1
jns 0x48e411
push str.ahhh_r_n
jmp 0x48e409
mov eax, dword [0x4ee750]
mov eax, dword [eax + 0x1c]
add eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c8], 1
jns 0x48e411
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
mov ecx, dword [0x4ee750]
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax + 0x54]
sub edx, dword [eax + 0x50]
inc ebx
sar edx, 2
cmp ebx, edx
jl 0x48e280
mov ecx, dword [esp + 0x24]
mov byte [ecx], 0
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
push edi
push edx
push eax
mov edx, 1
mov al, 0x54
call fcn.0048fcb0
push edi
mov esi, eax
call fcn.0049081d
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call fcn.0049081d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0049dc2a
add esp, 0xf4
ret 4
mov eax, dword [esp + 0x18]
push 0x22
push esi
push eax
call fcn.004a38d0
add esp, 0xc
push esi
call fcn.0049081d
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.004019b0
xor edi, edi
mov dword [esp + 0x104], edi
mov eax, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x174]
mov dword [esp + 0x3c], edx
cmp eax, edi
jne 0x48e4da
xor al, al
jmp 0x48e4e0
cmp dword [eax + 0x10], edi
setne al
xor ecx, ecx
test al, al
setne cl
push str.COMMS_PRINTTYPE
mov eax, ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], ecx
call fcn.00480b20
mov esi, eax
cmp esi, edi
je 0x48e517
push esi
call fcn.0049e31d
add esp, 4
push esi
mov dword [esp + 0x44], eax
call fcn.0049081d
add esp, 4
push str.SERIALNUMBER
mov eax, ebp
call fcn.00480b20
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x2c], 0
jne 0x48e7e2
push edi
lea edx, [esp + 0x78]
push str.PRINTER_d_AVAILABLE
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x74]
push eax
call fcn.0046ccd0
mov ebx, eax
test ebx, ebx
je 0x48e6da
push ebx
call fcn.0049e31d
add esp, 4
push ebx
mov dword [esp + 0x20], eax
call fcn.0049081d
add esp, 4
cmp dword [esp + 0x1c], 1
jne 0x48e6da
push edi
lea ecx, [esp + 0x78]
push str.PRINTER_d_NAME
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x74]
push edx
call fcn.0046ccd0
push edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x78]
push str.PRINTER_d_TYPE
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x48], 0
call fcn.0046ccd0
mov ebx, eax
test ebx, ebx
je 0x48e5e5
push ebx
call fcn.0049e31d
add esp, 4
push ebx
mov dword [esp + 0x48], eax
call fcn.0049081d
add esp, 4
push edi
lea edx, [esp + 0x78]
push str.PRINTER_d_PORT
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x3c], 0
call fcn.0046ccd0
mov ebx, eax
test ebx, ebx
je 0x48e623
push ebx
call fcn.0049e31d
add esp, 4
push ebx
mov dword [esp + 0x3c], eax
call fcn.0049081d
add esp, 4
push edi
lea ecx, [esp + 0x78]
push str.PRINTER_d_PRNTYPE
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x74]
push edx
call fcn.0046ccd0
mov ebx, eax
test ebx, ebx
je 0x48e655
push ebx
call fcn.0049e31d
add esp, 4
push ebx
call fcn.0049081d
add esp, 4
push edi
lea eax, [esp + 0x78]
push str.PRINTER_d_PRNSERNUM
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x74]
push ecx
call fcn.0046ccd0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x48e69d
test bx, bx
je 0x48e699
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x48e69d
add ecx, 4
add edx, 4
test bx, bx
jne 0x48e677
xor ecx, ecx
jmp 0x48e6a2
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x48e6c2
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x3c], edx
jne 0x48e6c2
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x30], ecx
jne 0x48e6c2
mov dword [esp + 0x2c], 1
push eax
call fcn.0049081d
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call fcn.0049081d
add esp, 4
jmp 0x48e6e5
cmp dword [esp + 0x28], 0xffffffff
jne 0x48e6e5
mov dword [esp + 0x28], edi
inc edi
cmp edi, 0x20
jl 0x48e539
cmp dword [esp + 0x2c], 0
jne 0x48e7e2
mov edi, dword [esp + 0x28]
cmp edi, 0xffffffff
je 0x48e7e2
push edi
lea eax, [esp + 0x78]
push str.PRINTER_d_AVAILABLE
push eax
call esi
add esp, 0xc
push 1
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [0x4ee750]
call fcn.0046c980
push edi
lea edx, [esp + 0x78]
push str.PRINTER_d_NAME
push edx
call esi
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [0x4ee750]
call fcn.0046cab0
push edi
lea edx, [esp + 0x78]
push str.PRINTER_d_TYPE
push edx
call esi
mov eax, dword [esp + 0x3c]
add esp, 0xc
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [0x4ee750]
call fcn.0046c980
push edi
lea edx, [esp + 0x78]
push str.PRINTER_d_PRNTYPE
push edx
call esi
mov eax, dword [esp + 0x4c]
add esp, 0xc
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [0x4ee750]
call fcn.0046c980
push edi
lea edx, [esp + 0x78]
push str.PRINTER_d_PORT
push edx
call esi
mov eax, dword [esp + 0x48]
add esp, 0xc
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [0x4ee750]
call fcn.0046c980
push edi
lea edx, [esp + 0x78]
push str.PRINTER_d_PRNSERNUM
push edx
call esi
mov eax, dword [esp + 0x40]
add esp, 0xc
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [0x4ee750]
call fcn.0046cab0
mov edx, dword [esp + 0x34]
push edx
call fcn.0049081d
add esp, 4
add ebp, 0x1c0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c4], 1
jns 0x48e812
push str.ahhh_r_n
call fcn.00477b80
add esp, 4
mov eax, dword [esp + 0x24]
mov byte [eax], 1
mov dword [esp + 0x104], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48e433
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x48e433