Function at 0x10009840
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov eax, ecx
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x4c
mov ecx, dword [ecx]
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
test byte [0x1001a0b8], 8
jne 0x10009a08
cmp edx, 2
je 0x10009a4f
ja 0x10009998
test edx, edx
je 0x10009d00
mov dword [esp], 0x40
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10009c60
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10009cf0
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x10009ce0
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10009cd0
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x24]
movq xmm2, qword [ebx + 0x1c]
movq qword [edi + 0x1c], xmm2
mov dword [edi + 0x24], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym.winspool.drv_SetJobW
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov esi, eax
mov eax, dword [edi + 0xc]
sub esp, 0x14
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call ebx
jmp 0x100099ed
cmp edx, 3
jne 0x10009c28
mov dword [esp], 0xc
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 3
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym.winspool.drv_SetJobW
mov ebx, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0x14
mov esi, eax
mov dword [esp], edi
call ebx
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p___ld___ld___p___ld__n
mov dword [esp + 8], str.SetJobA
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
mov edx, dword [ebp - 0x2c]
cmp edx, 2
jne 0x10009880
mov dword [esp], 0x68
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10009c50
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10009cc0
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x10009cb0
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10009ca0
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x10009c90
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10009c70
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [edi + 0x20], eax
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x10009b49
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GdiConvertToDevmodeW]
sub esp, 4
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10009c80
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
sub esp, 8
movd xmm0, eax
mov eax, dword [ebx + 0x44]
movd xmm1, dword [ebx + 0x30]
movdqu xmm3, xmmword [ebx + 0x34]
punpckldq xmm0, xmm1
movq qword [edi + 0x2c], xmm0
mov dword [edi + 0x44], eax
mov eax, dword [ebx + 0x64]
movups xmmword [edi + 0x34], xmm3
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], 2
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym.winspool.drv_SetJobW
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov esi, eax
mov eax, dword [edi + 0xc]
sub esp, 0x14
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x1c]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x20]
mov dword [esp], eax
call ebx
mov ecx, dword [edi + 0x28]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [edi + 0x2c]
sub esp, 0xc
mov dword [esp], eax
call ebx
jmp 0x100099ed
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7c
lea esp, [ebp - 0x10]
xor esi, esi
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [ebp - 0x1c], 0
jmp 0x10009a7f
mov dword [ebp - 0x1c], 0
jmp 0x100098be
mov dword [ebp - 0x1c], 0
jmp 0x10009b33
mov dword [ebp - 0x1c], 0
jmp 0x10009b6d
mov dword [ebp - 0x1c], 0
jmp 0x10009b0f
mov dword [ebp - 0x1c], 0
jmp 0x10009aeb
mov dword [ebp - 0x1c], 0
jmp 0x10009ac7
mov dword [ebp - 0x1c], 0
jmp 0x10009aa3
mov dword [ebp - 0x1c], 0
jmp 0x1000992a
mov dword [ebp - 0x1c], 0
jmp 0x10009906
mov dword [ebp - 0x1c], 0
jmp 0x100098e2
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], esi
xor edi, edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym.winspool.drv_SetJobW
mov ebx, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0x14
mov esi, eax
jmp 0x100099ed