Function at 0x10005200
Capabilities:
Access peb ldr_data
Get geographical location
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x134
mov dword [ebp - 0xf0], 0
test byte [0x10025868], 8
jne 0x10005e00
mov ebx, dword [0x100259e0]
mov esi, dword [sym.imp.ucrtbase.dll_wcscmp]
mov edi, dword [ebp + 8]
cmp ebx, 0x100259e0
jne 0x1000524a
jmp 0x10005268
mov ebx, dword [ebx]
cmp ebx, 0x100259e0
je 0x10005268
mov dword [esp + 4], edi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
test eax, eax
jne 0x10005240
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x10025780]
mov dword [esp + 8], 0x20
mov dword [esp + 4], 8
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0xf4], eax
call eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x1000525a
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x10005e35
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x100052a8
sub eax, dword [ebp + 8]
add eax, 2
mov dword [esp + 8], eax
mov eax, dword [0x10025780]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0xf4]
call eax
mov dword [ebx + 8], eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x10005cfd
mov esi, dword [ebp + 8]
xor eax, eax
lea esi, cs:[esi]
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x100052f0
lea eax, [ebp - 0xf0]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym._OpenPrinterW_12
sub esp, 0xc
test eax, eax
je 0x10005cf0
mov edx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0xf8], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x20
mov esi, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0xf4]
call eax
mov edx, dword [ebp - 0xf8]
sub esp, 0xc
mov dword [ebp - 0x108], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov esi, dword [ebp - 0xf0]
lea eax, [ebp - 0xe8]
sub esp, 0x20
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._GetPrinterDriverW_24
sub esp, 0x18
cmp dword [edi + 0x34], 0x7a
jne 0x10005d07
mov eax, dword [ebp - 0xe8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0xf4]
call eax
mov dword [ebp - 0x100], eax
sub esp, 0xc
test eax, eax
je 0x10005d11
lea eax, [ebp - 0xe8]
mov edi, dword [ebp - 0x100]
mov dword [esp], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xe8]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0
call sym._GetPrinterDriverW_24
mov edx, dword [edi + 0x10]
sub esp, 0x18
cmp word [edx], 0
je 0x100060d5
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x100054a8
sub eax, edx
add eax, 2
mov edi, dword [ebp - 0x100]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.ucrtbase.dll_memmove]
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [ebp - 0x110], eax
call eax
mov eax, dword [ebp - 0xf0]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._PSDRV_ParsePPD
mov dword [ebx + 0xc], eax
test eax, eax
je 0x10005fa8
mov esi, dword [ebp - 0xf0]
lea eax, [ebp - 0xe8]
mov dword [ebx + 0x1c], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xec]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.PrinterDriverDataFontSubTable
mov dword [esp], esi
call sym._EnumPrinterDataExW_24
sub esp, 0x18
cmp eax, 0xea
jne 0x10005e6c
mov eax, dword [ebp - 0xec]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x10025780]
mov dword [esp], eax
mov eax, dword [ebp - 0xf4]
call eax
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x10006148
lea eax, [ebp - 0xe8]
mov dword [esp + 8], edi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xec]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xec]
mov dword [esp + 4], str.PrinterDriverDataFontSubTable
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sym._EnumPrinterDataExW_24
sub esp, 0x18
test eax, eax
jne 0x10006114
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xfc], eax
mov dword [ebx + 0x1c], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x104], eax
mov dword [ebx + 0x18], edi
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 0x48]
lea ecx, [edi + 0x48]
cmp ecx, eax
je 0x10006078
xor edx, edx
lea esi, [esi]
mov eax, dword [eax]
mov esi, edx
inc edx
cmp ecx, eax
jne 0x100055e0
lea eax, [esi + 0x40]
mov dword [ebp - 0x120], edx
mov dword [ebp - 0xf8], eax
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
cmp ecx, eax
je 0x1000605f
xor edx, edx
lea esi, cs:[esi]
mov eax, dword [eax]
inc edx
cmp ecx, eax
jne 0x10005610
lea eax, [edx + edx]
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x10c], eax
mov eax, dword [edi + 0x34]
lea ecx, [edi + 0x34]
cmp ecx, eax
je 0x1000604e
xor edx, edx
lea esi, cs:[esi]
nop
mov eax, dword [eax]
inc edx
cmp ecx, eax
jne 0x10005640
imul ecx, edx, 0x17
mov dword [ebp - 0x11c], edx
mov eax, dword [edi + 0x2c]
lea edx, [edi + 0x2c]
cmp edx, eax
je 0x1000603d
xor esi, esi
mov eax, dword [eax]
inc esi
cmp edx, eax
jne 0x10005660
mov dword [ebp - 0x114], esi
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [esi + eax*4]
mov esi, dword [ebp - 0xf8]
add esi, dword [ebp - 0x10c]
mov dword [esp + 4], 9
add esi, ecx
lea eax, [esi + eax*8]
mov esi, dword [ebp - 0xf0]
lea edi, [eax*4]
lea eax, [ebp - 0xe8]
mov dword [esp + 0x10], eax
mov dword [esp], esi
mov dword [ebp - 0xf8], edi
call sym._GetPrinterW_20
sub esp, 0x14
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
jne 0x10005ec4
cmp dword [ebp - 0xe8], edi
mov eax, edi
cmovae eax, dword [ebp - 0xe8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x10025780]
mov dword [esp], eax
mov eax, dword [ebp - 0xf4]
call eax
sub esp, 0xc
mov edx, eax
lea eax, [ebp - 0xe8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xe8]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 9
mov dword [esp], esi
mov dword [ebp - 0x10c], edx
call sym._GetPrinterW_20
mov edx, dword [ebp - 0x10c]
sub esp, 0x14
test eax, eax
je 0x10005ea5
mov eax, dword [edx]
test eax, eax
je 0x10005ea5
movzx esi, word [eax + 0x44]
movzx ecx, word [eax + 0x46]
add ecx, esi
mov esi, eax
sub esi, edx
add esi, ecx
cmp esi, dword [ebp - 0xe8]
ja 0x10005ea5
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x110]
mov dword [esp], edx
mov dword [ebp - 0xf4], edx
call eax
mov edx, dword [ebp - 0xf4]
movzx eax, byte [0x10025868]
mov ecx, dword [edx + 0x48]
and eax, 8
and ecx, 0x1ff1f
cmp ecx, 0x1ff1f
je 0x10005ff8
test al, al
jne 0x10006008
mov edi, dword [ebp - 0xf8]
mov eax, 0x100
mov esi, 0x1002d7e0
cmp edi, 0x100
cmovbe eax, edi
cmp eax, 4
jae 0x10005f2c
test eax, eax
jne 0x10005f9a
mov edi, dword [ebp + 8]
mov eax, edx
lea esi, [edi + 0x3e]
mov ecx, edi
lea esi, cs:[esi]
nop
movzx edi, word [ecx]
test di, di
je 0x10005806
add ecx, 2
add eax, 2
mov word [eax - 2], di
cmp ecx, esi
jne 0x100057f0
xor ecx, ecx
mov dword [ebx + 0x10], edx
mov word [eax], cx
lea eax, [ebp - 0xec]
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x2000100a
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
sub esp, 0x10
test eax, eax
jne 0x10006091
mov edx, dword [ebx + 0xc]
mov esi, dword [edx + 0x3c]
test esi, esi
je 0x1000588a
xor eax, eax
mov ecx, 0x37
lea edi, [ebp - 0xe8]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xa0], 2
mov eax, dword [edx + 0x3c]
movzx eax, word [eax + 0x1c]
mov dword [esp + 8], ebx
mov word [ebp - 0x9a], ax
lea eax, [ebp - 0xe8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._PSDRV_MergeDevmodes
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xf8]
movzx esi, word [eax + 0x44]
movzx edi, word [eax + 0x46]
sub ecx, esi
cmp edi, ecx
je 0x10005b67
movzx ecx, word [ebp - 0xf8]
sub ecx, esi
mov word [eax + 0x46], cx
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov edx, dword [edx + 0x14]
mov dword [eax + 0xdc], edx
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov edx, dword [edx + 0x18]
mov dword [eax + 0xe0], edx
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x5c]
xor eax, eax
test edx, edx
je 0x100058e0
movzx eax, word [edx + 0x14]
mov edx, dword [ebx + 0x10]
mov edi, dword [ebp - 0x120]
mov dword [edx + 0xe4], eax
mov eax, dword [ebx + 0x10]
mov dword [eax + 0xe8], edi
mov edi, dword [ebp - 0x118]
mov eax, dword [ebx + 0x10]
mov dword [eax + 0xec], edi
mov edi, dword [ebp - 0x11c]
mov eax, dword [ebx + 0x10]
mov dword [eax + 0xf0], edi
mov edi, dword [ebp - 0xfc]
mov eax, dword [ebx + 0x10]
mov dword [eax + 0xf4], edi
mov edi, dword [ebp - 0x114]
mov eax, dword [ebx + 0x10]
mov dword [eax + 0xf8], edi
mov eax, dword [ebx + 0x10]
lea edi, [eax + 0xfc]
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x48]
lea ecx, [eax + 0x48]
cmp edx, ecx
je 0x10005966
lea esi, [esi]
movzx eax, word [edx + 0x14]
add edi, 4
mov dword [edi - 4], eax
mov eax, dword [ebx + 0xc]
mov edx, dword [edx]
lea ecx, [eax + 0x48]
cmp edx, ecx
jne 0x10005950
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0xc]
cmp edx, ecx
je 0x1000598b
mov eax, dword [edx + 8]
add edi, 8
mov dword [edi - 8], eax
mov eax, dword [edx + 0xc]
mov dword [edi - 4], eax
mov eax, dword [ebx + 0xc]
mov edx, dword [edx]
lea ecx, [eax + 0xc]
cmp edx, ecx
jne 0x10005970
mov esi, dword [eax + 0x34]
lea edx, [eax + 0x34]
cmp esi, edx
je 0x10005a46
mov dword [ebp - 0xf4], ebx
nop
mov eax, dword [esi + 0xc]
mov edx, edi
lea ebx, [eax + 0x3e]
lea esi, cs:[esi]
movzx ecx, word [eax]
test cx, cx
je 0x100059c6
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp eax, ebx
jne 0x100059b0
xor eax, eax
mov word [edx], ax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10005e40
movss xmm0, dword [eax]
movss dword [edi + 0x40], xmm0
mov eax, dword [esi + 0x14]
movss xmm0, dword [eax + 4]
movss dword [edi + 0x44], xmm0
mov eax, dword [esi + 0x14]
movss xmm0, dword [eax + 8]
movss dword [edi + 0x48], xmm0
mov eax, dword [esi + 0x14]
movss xmm0, dword [eax + 0xc]
movss dword [edi + 0x4c], xmm0
mov eax, dword [esi + 0x18]
add edi, 0x5c
movss xmm0, dword [eax]
movss dword [edi - 0xc], xmm0
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax + 4]
movss dword [edi - 8], xmm0
movzx eax, word [esi + 0x1c]
mov word [edi - 4], ax
mov eax, dword [ebp - 0xf4]
mov esi, dword [esi]
mov eax, dword [eax + 0xc]
lea edx, [eax + 0x34]
cmp esi, edx
jne 0x100059a0
mov ebx, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xfc]
test ecx, ecx
jle 0x10005b0b
xor eax, eax
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x10c], edi
mov edi, eax
lea esi, [esi]
mov edx, dword [ebx + 0x18]
lea eax, [edi + edi*4]
lea esi, [eax*4]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], esi
lea esi, [eax + 0x3e]
lea esi, cs:[esi]
nop
movzx ecx, word [eax]
test cx, cx
je 0x10005aa6
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp eax, esi
jne 0x10005a90
xor esi, esi
mov word [edx], si
mov esi, dword [ebp - 0xf8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + esi + 0xc]
mov esi, dword [ebp - 0xf4]
lea edx, [esi + 0x40]
lea esi, [eax + 0x3e]
lea esi, [esi]
movzx ecx, word [eax]
test cx, cx
je 0x10005ade
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp eax, esi
jne 0x10005ac8
xor eax, eax
sub dword [ebp - 0xf4], 0xffffff80
inc edi
mov word [edx], ax
cmp dword [ebp - 0xfc], edi
jne 0x10005a68
mov eax, dword [ebp - 0xfc]
mov edi, dword [ebp - 0x10c]
shl eax, 7
add edi, eax
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 0x2c]
add eax, 0x2c
cmp esi, eax
je 0x10005b64
mov dword [ebp - 0xf8], ebx
lea esi, cs:[esi]
mov eax, dword [esi + 8]
mov edx, edi
lea ebx, [eax + 0x1f]
lea esi, cs:[esi]
movzx ecx, byte [eax]
test cl, cl
je 0x10005b40
inc eax
inc edx
mov byte [edx - 1], cl
cmp eax, ebx
jne 0x10005b30
mov eax, dword [ebp - 0xf8]
mov byte [edx], 0
add edi, 0x20
mov esi, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xf4], eax
add eax, 0x2c
cmp esi, eax
jne 0x10005b20
mov ebx, dword [ebp - 0xf8]
mov eax, dword [ebx + 0x10]
and dword [eax + 0x48], 0xffffefff
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x10005b98
movzx eax, word [eax + 0x14]
mov edx, dword [ebx + 0x10]
mov word [edx + 0x5e], ax
mov eax, dword [ebx + 0x10]
cmp word [eax + 0x5e], 0
je 0x10005e87
or dword [eax + 0x48], 0x1000
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc], 0
lea edi, [ebx + 0x14]
mov dword [esp + 4], 9
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xe8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xf0]
mov dword [esp], eax
call sym._SetPrinterW_16
mov eax, dword [ebx + 0xc]
sub esp, 0x10
mov esi, dword [eax + 0x2c]
add eax, 0x2c
cmp esi, eax
jne 0x10005c12
jmp 0x10005c6a
lea ecx, [ebp - 0xe8]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], edi
call sym._PSDRV_AddAFMtoList
test eax, eax
je 0x10005e95
mov eax, dword [ebx + 0xc]
mov esi, dword [esi]
add eax, 0x2c
cmp esi, eax
je 0x10005c6a
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [0x10023018]
mov dword [esp], eax
call sym._PSDRV_FindAFMinList
test eax, eax
jne 0x10005be8
test byte [0x10025868], 8
je 0x10005c06
mov eax, dword [esi + 8]
mov dword [esp + 0xc], str.Couldnt_find_AFM_file_for_installed_printer_font__s___ignoring_n
mov dword [esp + 8], str.PSDRV_FindPrinterInfo
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10025868
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_12
mov eax, dword [ebx + 0xc]
mov esi, dword [esi]
add eax, 0x2c
cmp esi, eax
jne 0x10005c12
mov eax, dword [ebp - 0xf0]
mov esi, dword fs:[0x18]
mov dword [esp], eax
call sym._ClosePrinter_4
mov eax, dword [ebp - 0x108]
mov edi, dword [ebp - 0x104]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x100]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [0x100259e0]
mov dword [ebx + 4], 0x100259e0
mov dword [0x100259e0], ebx
sub esp, 0xc
mov dword [ebx], eax
mov dword [eax + 4], ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x10025868], 2
jne 0x10005f45
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x100], 0
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0xf0]
test eax, eax
je 0x10005d31
mov dword [esp], eax
call sym._ClosePrinter_4
sub esp, 4
mov eax, dword [ebx + 0x18]
mov edi, dword [ebp - 0x104]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x10025780]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 8]
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [0x10025780]
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x10]
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [0x10025780]
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov eax, dword [0x10025780]
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x108]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x100]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
xor ebx, ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], 0x1002bd0e
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.PSDRV_FindPrinterInfo
mov dword [esp + 4], 0x10025868
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_12
jmp 0x10005223
mov eax, 2
jmp 0x100052b7
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax]
movss dword [edi + 0x48], xmm0
mov eax, dword [esi + 0x18]
movss xmm0, dword [eax + 4]
movss dword [edi + 0x4c], xmm0
jmp 0x10005a06
mov eax, dword [ebx + 0x1c]
xor edi, edi
mov dword [ebp - 0xfc], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x104], eax
jmp 0x100055c6
mov edx, 1
mov word [eax + 0x5e], dx
jmp 0x10005b98
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sym._PSDRV_FreeAFMList
jmp 0x10005d1c
mov eax, dword [0x10025780]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x104]
call eax
sub esp, 0xc
test byte [0x10025868], 8
je 0x10005ef1
mov dword [esp + 0xc], str.Using_default_devmode_n
mov dword [esp + 8], str.get_devmode
mov dword [esp + 4], 0x10025868
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_12
mov eax, dword [ebp - 0xf8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x10025780]
mov dword [esp], eax
mov eax, dword [ebp - 0xf4]
call eax
sub esp, 0xc
mov edx, eax
test eax, eax
jne 0x100057b2
mov dword [ebx + 0x10], 0
jmp 0x10005d1c
mov ecx, dword [eax + 0x1002d7dc]
mov edi, edx
mov dword [edx + eax - 4], ecx
lea ecx, [eax - 1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x100057dc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.OpenPrinter_failed_with_code__li_n
mov dword [esp + 8], str.PSDRV_FindPrinterInfo
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10025868
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_12
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x104], eax
jmp 0x10005d1c
movzx eax, byte [0x1002d7e0]
mov byte [edx], al
jmp 0x100057dc
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x104], eax
test byte [0x10025868], 4
je 0x10005d1c
mov eax, dword [ebp - 0x100]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str.Couldnt_parse_PPD_file__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.PSDRV_FindPrinterInfo
mov dword [esp + 4], 0x10025868
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_12
jmp 0x10005d1c
test al, al
jne 0x100060df
mov dword [ebx + 0x10], edx
jmp 0x10005840
mov dword [esp + 0xc], str.Using_default_devmode_n
mov dword [esp + 8], str.get_devmode
mov dword [esp + 4], 0x10025868
mov dword [esp], 3
mov dword [ebp - 0xf4], edx
call sym._wine_dbg_log.constprop.0_12
mov edx, dword [ebp - 0xf4]
jmp 0x100057b2
mov dword [ebp - 0x114], 0
xor esi, esi
jmp 0x1000566d
mov dword [ebp - 0x11c], 0
xor ecx, ecx
jmp 0x10005650
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x10c], 0
jmp 0x10005626
mov dword [ebp - 0xf8], 0x3f
mov dword [ebp - 0x120], 0
jmp 0x100055f8
xor eax, eax
lea edi, [ebp - 0xe8]
mov ecx, 0x37
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xec]
mov dword [esp + 8], ebx
mov dword [ebp - 0xa0], 2
mov word [ebp - 0x9a], ax
lea eax, [ebp - 0xe8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._PSDRV_MergeDevmodes
jmp 0x10005840
mov eax, 2
jmp 0x100054b6
mov dword [esp + 0xc], str.Retrieved_devmode_from_winspool_n
mov dword [esp + 8], str.get_devmode
mov dword [esp + 4], 0x10025868
mov dword [esp], 3
mov dword [ebp - 0xf4], edx
call sym._wine_dbg_log.constprop.0_12
mov edx, dword [ebp - 0xf4]
jmp 0x10006000
mov eax, dword [0x10025780]
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x104], eax
call eax
mov eax, dword [ebx + 0x1c]
sub esp, 0xc
mov dword [ebp - 0xfc], eax
jmp 0x100055c6
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xfc], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x104], eax
jmp 0x100055c6