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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov edx, dword [ecx]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x2c], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x30], edx
test byte [0x6419a04c], 8
jne 0x6418fca0
cmp ecx, 2
je 0x6418fcea
ja 0x6418fc28
test ecx, ecx
je 0x6418fc98
mov dword [esp], 0x40
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x6418fef0
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 [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x6418ff90
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 [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6418ff80
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 [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x6418ff70
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 [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp], eax
call sym.winspool.drv_SetJobW
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov edi, eax
mov eax, dword [ebx + 0xc]
sub esp, 0x14
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call esi
jmp 0x6418fc7f
cmp ecx, 3
jne 0x6418fed0
mov dword [ebp - 0x34], ecx
mov dword [esp], 0xc
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x34]
mov ebx, eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym.winspool.drv_SetJobW
mov esi, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0x14
mov edi, eax
mov dword [esp], ebx
call esi
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
xor ebx, ebx
jmp 0x6418fc56
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p___ld___ld___p___ld__n
mov dword [esp + 8], str.SetJobA
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
mov dword [ebp - 0x34], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x34]
cmp ecx, 2
jne 0x6418fb10
mov dword [esp], 0x68
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x6418ff00
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 [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x6418ff60
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 [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6418ff50
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 [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x6418ff40
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 [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x6418ff30
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 [ebx + 0x1c], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x6418ff20
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 [ebx + 0x20], eax
mov eax, dword [esi + 0x28]
test eax, eax
je 0x6418fde4
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GdiConvertToDevmodeW]
sub esp, 4
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x6418ff10
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 [ebx + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp], eax
call sym.winspool.drv_SetJobW
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov edi, eax
mov eax, dword [ebx + 0xc]
sub esp, 0x14
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call esi
mov edx, dword [ebx + 0x28]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebx + 0x2c]
sub esp, 0xc
mov dword [esp], eax
call esi
jmp 0x6418fc7f
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7c
lea esp, [ebp - 0x10]
xor edi, edi
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [ebp - 0x1c], 0
jmp 0x6418fb4e
mov dword [ebp - 0x1c], 0
jmp 0x6418fd1a
mov dword [ebp - 0x1c], 0
jmp 0x6418fe08
mov dword [ebp - 0x1c], 0
jmp 0x6418fdce
mov dword [ebp - 0x1c], 0
jmp 0x6418fdaa
mov dword [ebp - 0x1c], 0
jmp 0x6418fd86
mov dword [ebp - 0x1c], 0
jmp 0x6418fd62
mov dword [ebp - 0x1c], 0
jmp 0x6418fd3e
mov dword [ebp - 0x1c], 0
jmp 0x6418fbba
mov dword [ebp - 0x1c], 0
jmp 0x6418fb96
mov dword [ebp - 0x1c], 0
jmp 0x6418fb72