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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x101a4c2c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x30]
add eax, ecx
neg ecx
sbb ecx, ecx
and ecx, eax
jne 0x100e9b2e
xor eax, eax
jmp 0x100e9d18
mov ecx, dword [ecx + 0x17c]
test ecx, ecx
je 0x100e9b46
cmp ecx, 2
je 0x100e9b46
cmp ecx, 1
jne 0x100e9d15
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push ebx
push ebx
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], ebx
push eax
push 0x1002652c
push dword [esi + 0x10]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
cmp eax, 0xea
je 0x100e9d15
cmp dword [esi + 0x4fc], ebx
je 0x100e9d09
push dword [esi + 0x44]
mov ecx, dword [esi + 0x504]
push 1
push 8
pop edx
call fcn.100eb291
mov dword [esp + 0x14], eax
test eax, eax
je 0x100e9b27
mov eax, dword [esi + 0x28]
mov edx, dword [eax + 4]
lea ebx, [eax + 0x14]
jmp 0x100e9c1c
dec edx
cmp dword [ebx + 0x10], 0
mov dword [esp + 0xc], edx
je 0x100e9c19
push 6
xor eax, eax
lea edi, [esp + 0x1c]
pop ecx
rep stosd dword es:[edi], eax
push 0x18
pop eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [0x101a5fbc]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x24], eax
cmp dword [ebx + 0x24], 0
je 0x100e9bfa
lea eax, [esp + 0x18]
xor edx, edx
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.100d8b8d
cmp eax, 0x80004001
jne 0x100e9c37
mov edx, dword [esp + 0xc]
jmp 0x100e9c19
test byte [ebx + 0x3d], 8
je 0x100e9c05
mov edi, dword [ebx + 0x6c]
jmp 0x100e9c15
push 0xb
pop edx
mov ecx, ebx
call fcn.10110711
mov edx, dword [esp + 0xc]
mov edi, eax
test edi, edi
jne 0x100e9c22
add ebx, 0x78
test edx, edx
jne 0x100e9ba3
jmp 0x100e9c41
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push 0
push 0
push 0
call dword [0x101a77c4]
call edi
mov edi, dword [esp + 0x2c]
mov eax, edi
test eax, eax
jne 0x100e9c85
push 0x100
push 8
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100e9b27
mov ebx, 0x80
push ebx
push edi
push 0x1f9
push dword [0x101a5fbc]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x100e9c85
push 0x10026514
mov edx, ebx
mov ecx, edi
call fcn.1003f1d4
mov eax, dword [esp + 0x14]
push 0x18
pop ecx
push 0x34
mov word [eax], cx
mov byte [eax + 3], 1
mov eax, dword [esi + 0x4fc]
pop edx
mov word [eax], dx
mov eax, dword [esi + 0x4fc]
or dword [eax + 4], 4
mov ecx, dword [esi + 0x4fc]
mov eax, dword [esi + 0x504]
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x4fc]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x4fc]
and dword [eax + 0x10], 0
mov eax, dword [esi + 0x4fc]
mov byte [eax + 2], 1
mov eax, dword [esi + 0x4fc]
mov byte [eax + 0x20], 0
mov eax, dword [esi + 0x4fc]
mov eax, dword [eax + 8]
mov dword [eax + 4], 0x22
mov eax, dword [esi + 0x4fc]
mov dword [eax + 0x1c], 0x41d
add dword [esi + 0x4fc], edx
add dword [esi + 0x504], 0x20
inc dword [esi + 0x4f8]
inc dword [esi + 0x500]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10166ce0
mov esp, ebp
pop ebp
ret