Function at 0x8f87eff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x8f8c1c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c0], edi
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x190], esi
mov dword [ebp - 0x188], esi
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x19c], esi
mov eax, dword [0x8f8c004]
mov ebx, 0x8f8c004
cmp eax, ebx
je 0x8f87f9c
test byte [eax + 0x1c], 2
je 0x8f87f9c
cmp byte [eax + 0x19], 5
jb 0x8f87f9c
push 0x8f72b1c
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
mov dword [ebp - 0x1d0], esi
mov dword [ebp - 0x1c8], esi
mov dword [ebp - 0x1cc], esi
mov dword [ebp - 0x1c4], esi
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x198], esi
cmp edi, esi
je 0x8f87fd3
add edi, 4
mov dword [ebp - 0x1bc], edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
push 0x7c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xac]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x184], eax
cmp eax, 0xffffffff
jne 0x8f88055
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88044
test byte [eax + 0x1c], 2
je 0x8f88044
cmp byte [eax + 0x19], 2
jb 0x8f88044
push esi
push dword [ebp - 0x174]
push 0x8f72b1c
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f7392a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
jmp 0x8f88e2e
push esi
lea ecx, [ebp - 0x178]
push ecx
push 0x24
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x8f880b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88e07
test byte [eax + 0x1c], 2
je 0x8f88e07
cmp byte [eax + 0x19], 2
jb 0x8f88e07
push dword [ebp - 0x168]
push 0x8f72b1c
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
jmp 0x8f88e07
cmp dword [ebp - 0x178], 0x24
jne 0x8f88d64
push 5
pop ecx
lea edi, [ebp - 0x30]
mov esi, str.FAXCOVER_VER005w
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x8f88d64
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
mov dword [ebp - 0x194], esi
test esi, esi
jne 0x8f88127
push 8
pop ecx
mov dword [ebp - 0x168], ecx
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88df1
test byte [eax + 0x1c], 2
je 0x8f88df1
cmp byte [eax + 0x19], 2
jb 0x8f88df1
push ecx
push 0x8f72b1c
push 0xf
jmp 0x8f88d54
push 0
lea eax, [ebp - 0x178]
push eax
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x8f88d1a
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x178]
jne 0x8f88d1a
cmp dword [ebp - 0x16c], 0
je 0x8f8855f
mov edi, dword [ebp - 0x18c]
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov dword [ebp - 0x19c], eax
test eax, eax
jne 0x8f881ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88df1
test byte [eax + 0x1c], 2
je 0x8f88df1
cmp byte [eax + 0x19], 2
jb 0x8f88df1
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x11
jmp 0x8f88d54
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
test eax, eax
jne 0x8f88204
mov dword [ebp - 0x168], 0x1f
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88df1
test byte [eax + 0x1c], 2
je 0x8f88df1
cmp byte [eax + 0x19], 2
jb 0x8f88df1
push 0
push 0x8f72b1c
push 0x12
jmp 0x8f88d54
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [ebp - 0x198], eax
test eax, eax
jne 0x8f88259
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88df1
test byte [eax + 0x1c], 2
je 0x8f88df1
cmp byte [eax + 0x19], 2
jb 0x8f88df1
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x13
jmp 0x8f88d54
cmp dword [ebp - 0x1c], 0
jne 0x8f882a1
mov dword [ebp - 0x168], 0x12
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88df1
test byte [eax + 0x1c], 2
je 0x8f88df1
cmp byte [eax + 0x19], 2
jb 0x8f88df1
push 0x8f72b1c
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
jmp 0x8f88df1
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_SetEnhMetaFileBits]
mov esi, eax
mov dword [ebp - 0x190], esi
test esi, esi
jne 0x8f882f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x15
jmp 0x8f88d94
lea eax, [ebp - 0x290]
push eax
push 0x6c
push esi
call dword [sym.imp.GDI32.dll_GetEnhMetaFileHeader]
test eax, eax
jne 0x8f88349
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x16
jmp 0x8f88d94
push edi
push esi
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
test eax, eax
jne 0x8f8839a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x17
jmp 0x8f88d94
mov esi, dword [ebp - 0x16c]
push 0
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp eax, 0xffffffff
jne 0x8f883f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x18
jmp 0x8f88d94
push 8
push esi
call dword [sym.imp.GDI32.dll_SetMapMode]
test eax, eax
jne 0x8f88442
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x19
jmp 0x8f88d94
lea eax, [ebp - 0x1e8]
push eax
mov eax, dword [ebp - 0x10]
neg eax
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
test eax, eax
jne 0x8f8849c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x1a
jmp 0x8f88d94
lea eax, [ebp - 0x1e0]
push eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
test eax, eax
jne 0x8f884fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x1b
jmp 0x8f88d94
lea eax, [ebp - 0x1d8]
push eax
mov eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
test eax, eax
jne 0x8f8855f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x1c
jmp 0x8f88d94
push 0x40
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
mov dword [ebp - 0x188], edi
test edi, edi
jne 0x8f885ab
push 8
pop ecx
mov dword [ebp - 0x168], ecx
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push ecx
push 0x8f72b1c
push 0x1d
jmp 0x8f88d94
and dword [ebp - 0x174], 0
cmp dword [ebp - 0x18], 0
jg 0x8f88629
push 0
lea eax, [ebp - 0x178]
push eax
push 6
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x8f885e4
cmp dword [ebp - 0x178], 6
je 0x8f88d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x2b
jmp 0x8f88d94
mov edi, dword [ebp - 0x188]
push 0
lea eax, [ebp - 0x178]
push eax
push 0x7c
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x8f88cca
cmp dword [ebp - 0x178], 0x7c
jne 0x8f88cca
mov esi, dword [ebp - 0x34]
lea esi, [esi + esi + 2]
cmp esi, 0x40
jle 0x8f88682
push esi
push edi
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
test eax, eax
je 0x8f889ce
mov edi, eax
mov dword [ebp - 0x188], edi
xor esi, esi
push esi
lea eax, [ebp - 0x178]
push eax
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x8f88c88
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x178], eax
jne 0x8f88c88
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
cmp dword [ebp - 0x17c], esi
je 0x8f886d4
push dword [ebp - 0x17c]
call fcn.08f837bd
mov dword [ebp - 0x17c], esi
cmp edi, esi
je 0x8f886ec
push edi
call fcn.08f87e5b
mov dword [ebp - 0x17c], eax
cmp eax, esi
je 0x8f88a19
mov edi, dword [ebp - 0x16c]
test edi, edi
je 0x8f8874e
mov edx, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xa0]
cmp edx, esi
mov dword [ebp - 0x1b0], edx
jg 0x8f88712
mov dword [ebp - 0x1b0], esi
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa4]
cmp eax, ecx
mov dword [ebp - 0x1b4], eax
jl 0x8f8872e
mov dword [ebp - 0x1b4], ecx
cmp edx, esi
mov dword [ebp - 0x1a8], edx
jl 0x8f8873e
mov dword [ebp - 0x1a8], esi
cmp eax, ecx
mov dword [ebp - 0x1ac], eax
jg 0x8f8874e
mov dword [ebp - 0x1ac], ecx
mov dx, word [ebp - 0x38]
test dx, dx
je 0x8f88818
xor ecx, ecx
xor eax, eax
inc ecx
cmp dx, word [eax*2 + 0x8f8c510]
je 0x8f88774
inc eax
add ecx, ecx
cmp eax, 0x1d
jb 0x8f88760
jmp 0x8f8879b
cmp dword [ebp - 0x1c0], 0
je 0x8f8878e
mov esi, dword [ebp - 0x1bc]
mov eax, dword [esi + eax*4]
mov dword [ebp - 0x170], eax
jmp 0x8f88795
and dword [ebp - 0x170], 0
or dword [ebp - 0x1a0], ecx
mov eax, 0x80f
cmp dx, ax
jne 0x8f88818
test edi, edi
je 0x8f88818
lea esi, [ebp - 0x1b4]
lea edi, [ebp - 0x1d0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 2
lea eax, [ebp - 0x1d0]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x16c]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.GDI32.dll_LPtoDP]
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.08f87e77
mov dword [ebp - 0x168], eax
test eax, eax
jne 0x8f88a52
push 0x64
push 0x5a
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push dword [ebp - 0x164]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, dword [ebp - 0x16c]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x17c]
xor esi, esi
cmp word [eax], si
jne 0x8f8882b
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x170], eax
cmp edi, esi
je 0x8f889ad
cmp eax, esi
je 0x8f889ad
push dword [ebp - 0x9c]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x1b8], eax
cmp eax, 0xffffffff
je 0x8f88a85
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.08f87e77
mov dword [ebp - 0x168], eax
cmp eax, esi
jne 0x8f88ac4
cmp dword [ebp + 0x1c], esi
je 0x8f8888a
or byte [ebp - 0xf0], 7
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov esi, eax
mov dword [ebp - 0x180], esi
test esi, esi
je 0x8f88af7
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x18c], eax
test eax, eax
je 0x8f88b36
cmp dword [ebp + 0x1c], 0
je 0x8f88929
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x8f88b75
test byte [ebp - 0x1ed], 4
ja 0x8f88929
push 0x8f72b2c
push 0x20
lea eax, [ebp - 0xec]
push eax
call fcn.08f765c2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov esi, eax
mov dword [ebp - 0x180], esi
test esi, esi
je 0x8f88bb4
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x8f88bf3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
cmp word [ebp - 0x38], di
je 0x8f8894a
push dword [ebp - 0x170]
push 0x800
call fcn.08f83b68
test eax, eax
je 0x8f8894a
mov edi, 0x20000
mov eax, dword [ebp - 0x98]
or eax, edi
or eax, 0x810
push eax
lea eax, [ebp - 0x1b4]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x170]
push dword [ebp - 0x16c]
call dword [sym.imp.USER32.dll_DrawTextW]
test eax, eax
je 0x8f88c32
push dword [ebp - 0x18c]
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x1b8]
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_SetTextColor]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [ebp - 0x180], 0
and dword [ebp - 0x170], 0
inc dword [ebp - 0x174]
mov eax, dword [ebp - 0x174]
cmp eax, dword [ebp - 0x18]
jl 0x8f88623
jmp 0x8f885b8
mov dword [ebp - 0x168], 8
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push 8
push esi
push dword [ebp - 0x174]
push 0x8f72b1c
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f87cdd
jmp 0x8f88d9f
mov dword [ebp - 0x168], 8
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push 8
push 0x8f72b1c
push 0x21
jmp 0x8f88d94
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x22
jmp 0x8f88d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x23
jmp 0x8f88d94
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x24
jmp 0x8f88d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x25
jmp 0x8f88d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x26
jmp 0x8f88d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x27
jmp 0x8f88d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x28
jmp 0x8f88d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x29
jmp 0x8f88d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push dword [ebp - 0x170]
push dword [ebp - 0x174]
push 0x8f72b1c
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f87d15
jmp 0x8f88d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push dword [ebp - 0x174]
push 0x8f72b1c
push 0x20
jmp 0x8f88d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88d9f
test byte [eax + 0x1c], 2
je 0x8f88d9f
cmp byte [eax + 0x19], 2
jb 0x8f88d9f
push dword [ebp - 0x168]
push dword [ebp - 0x174]
push 0x8f72b1c
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f7388b
jmp 0x8f88d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88df1
test byte [eax + 0x1c], 2
je 0x8f88df1
cmp byte [eax + 0x19], 2
jb 0x8f88df1
push dword [ebp - 0x168]
push 0x8f72b1c
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
jmp 0x8f88df1
mov dword [ebp - 0x168], 0xb
mov eax, dword [0x8f8c004]
cmp eax, ebx
je 0x8f88e07
test byte [eax + 0x1c], 2
je 0x8f88e07
cmp byte [eax + 0x19], 2
jb 0x8f88e07
push 0xb
push 0x8f72b1c
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
xor esi, esi
cmp dword [ebp - 0x190], esi
je 0x8f88db5
push dword [ebp - 0x190]
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
cmp dword [ebp - 0x17c], esi
je 0x8f88dc8
push dword [ebp - 0x17c]
call fcn.08f837bd
cmp dword [ebp - 0x180], esi
je 0x8f88ddc
push dword [ebp - 0x180]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x188], esi
je 0x8f88df1
push dword [ebp - 0x188]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x194], 0
je 0x8f88e07
push dword [ebp - 0x194]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x198], 0
je 0x8f88e2e
push dword [ebp - 0x198]
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_RestoreDC]
cmp dword [ebp - 0x168], 0
jne 0x8f88e79
cmp dword [ebp - 0x1a4], 0
je 0x8f88e79
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x1a0]
lea edi, [eax + 4]
lea esi, [ebp - 0x1d0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov cx, word [ebp - 0xa]
movsd dword es:[edi], dword [esi]
mov word [eax + 0x16], cx
mov cx, word [ebp - 8]
movsd dword es:[edi], dword [esi]
mov word [eax + 0x14], cx
push 0x17
lea edi, [eax + 0x18]
pop ecx
lea esi, [ebp - 0x164]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x19c], 0
pop edi
pop esi
pop ebx
je 0x8f88e91
push dword [ebp - 0x19c]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x168]
xor ecx, ebp
call fcn.08f82466
leave
ret 0x18