Function at 0x10677c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x1075fb8]
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 [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x1067866
test byte [eax + 0x1c], 2
je 0x1067866
cmp byte [eax + 0x19], 5
jb 0x1067866
push 0x10064b4
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
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 0x106789d
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 0x106791f
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x106790e
test byte [eax + 0x1c], 2
je 0x106790e
cmp byte [eax + 0x19], 2
jb 0x106790e
push esi
push dword [ebp - 0x174]
push 0x10064b4
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
jmp 0x10686f8
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 0x1067982
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10686d1
test byte [eax + 0x1c], 2
je 0x10686d1
cmp byte [eax + 0x19], 2
jb 0x10686d1
push dword [ebp - 0x168]
push 0x10064b4
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x10686d1
cmp dword [ebp - 0x178], 0x24
jne 0x106862e
push 5
pop ecx
lea edi, [ebp - 0x30]
mov esi, str.FAXCOVER_VER005w
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x106862e
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 0x10679f1
push 8
pop ecx
mov dword [ebp - 0x168], ecx
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10686bb
test byte [eax + 0x1c], 2
je 0x10686bb
cmp byte [eax + 0x19], 2
jb 0x10686bb
push ecx
push 0x10064b4
push 0xf
jmp 0x106861e
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 0x10685e4
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x178]
jne 0x10685e4
cmp dword [ebp - 0x16c], 0
je 0x1067e29
mov edi, dword [ebp - 0x18c]
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov dword [ebp - 0x19c], eax
test eax, eax
jne 0x1067a84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10686bb
test byte [eax + 0x1c], 2
je 0x10686bb
cmp byte [eax + 0x19], 2
jb 0x10686bb
push dword [ebp - 0x168]
push 0x10064b4
push 0x11
jmp 0x106861e
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
test eax, eax
jne 0x1067ace
mov dword [ebp - 0x168], 0x1f
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10686bb
test byte [eax + 0x1c], 2
je 0x10686bb
cmp byte [eax + 0x19], 2
jb 0x10686bb
push 0
push 0x10064b4
push 0x12
jmp 0x106861e
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [ebp - 0x198], eax
test eax, eax
jne 0x1067b23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10686bb
test byte [eax + 0x1c], 2
je 0x10686bb
cmp byte [eax + 0x19], 2
jb 0x10686bb
push dword [ebp - 0x168]
push 0x10064b4
push 0x13
jmp 0x106861e
cmp dword [ebp - 0x1c], 0
jne 0x1067b6b
mov dword [ebp - 0x168], 0x12
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10686bb
test byte [eax + 0x1c], 2
je 0x10686bb
cmp byte [eax + 0x19], 2
jb 0x10686bb
push 0x10064b4
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x10686bb
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 0x1067bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x15
jmp 0x106865e
lea eax, [ebp - 0x290]
push eax
push 0x6c
push esi
call dword [sym.imp.GDI32.dll_GetEnhMetaFileHeader]
test eax, eax
jne 0x1067c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x16
jmp 0x106865e
push edi
push esi
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
test eax, eax
jne 0x1067c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x17
jmp 0x106865e
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 0x1067cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x18
jmp 0x106865e
push 8
push esi
call dword [sym.imp.GDI32.dll_SetMapMode]
test eax, eax
jne 0x1067d0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x19
jmp 0x106865e
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 0x1067d66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x1a
jmp 0x106865e
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 0x1067dc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x1b
jmp 0x106865e
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 0x1067e29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x1c
jmp 0x106865e
push 0x40
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
mov dword [ebp - 0x188], edi
test edi, edi
jne 0x1067e75
push 8
pop ecx
mov dword [ebp - 0x168], ecx
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push ecx
push 0x10064b4
push 0x1d
jmp 0x106865e
and dword [ebp - 0x174], 0
cmp dword [ebp - 0x18], 0
jg 0x1067ef3
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 0x1067eae
cmp dword [ebp - 0x178], 6
je 0x1068669
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x2b
jmp 0x106865e
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 0x1068594
cmp dword [ebp - 0x178], 0x7c
jne 0x1068594
mov esi, dword [ebp - 0x34]
lea esi, [esi + esi + 2]
cmp esi, 0x40
jle 0x1067f4c
push esi
push edi
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
test eax, eax
je 0x1068298
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 0x1068552
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x178], eax
jne 0x1068552
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
cmp dword [ebp - 0x17c], esi
je 0x1067f9e
push dword [ebp - 0x17c]
call fcn.0105c21c
mov dword [ebp - 0x17c], esi
cmp edi, esi
je 0x1067fb6
push edi
call fcn.010676b6
mov dword [ebp - 0x17c], eax
cmp eax, esi
je 0x10682e3
mov edi, dword [ebp - 0x16c]
test edi, edi
je 0x1068018
mov edx, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xa0]
cmp edx, esi
mov dword [ebp - 0x1b0], edx
jg 0x1067fdc
mov dword [ebp - 0x1b0], esi
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa4]
cmp eax, ecx
mov dword [ebp - 0x1b4], eax
jl 0x1067ff8
mov dword [ebp - 0x1b4], ecx
cmp edx, esi
mov dword [ebp - 0x1a8], edx
jl 0x1068008
mov dword [ebp - 0x1a8], esi
cmp eax, ecx
mov dword [ebp - 0x1ac], eax
jg 0x1068018
mov dword [ebp - 0x1ac], ecx
mov dx, word [ebp - 0x38]
test dx, dx
je 0x10680e2
xor ecx, ecx
xor eax, eax
inc ecx
cmp dx, word [eax*2 + 0x1077b84]
je 0x106803e
inc eax
add ecx, ecx
cmp eax, 0x1d
jb 0x106802a
jmp 0x1068065
cmp dword [ebp - 0x1c0], 0
je 0x1068058
mov esi, dword [ebp - 0x1bc]
mov eax, dword [esi + eax*4]
mov dword [ebp - 0x170], eax
jmp 0x106805f
and dword [ebp - 0x170], 0
or dword [ebp - 0x1a0], ecx
mov eax, 0x80f
cmp dx, ax
jne 0x10680e2
test edi, edi
je 0x10680e2
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.01067741
mov dword [ebp - 0x168], eax
test eax, eax
jne 0x106831c
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 0x10680f5
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x170], eax
cmp edi, esi
je 0x1068277
cmp eax, esi
je 0x1068277
push dword [ebp - 0x9c]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x1b8], eax
cmp eax, 0xffffffff
je 0x106834f
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.01067741
mov dword [ebp - 0x168], eax
cmp eax, esi
jne 0x106838e
cmp dword [ebp + 0x1c], esi
je 0x1068154
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 0x10683c1
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x18c], eax
test eax, eax
je 0x1068400
cmp dword [ebp + 0x1c], 0
je 0x10681f3
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x106843f
test byte [ebp - 0x1ed], 4
ja 0x10681f3
push 0x10064c4
push 0x20
lea eax, [ebp - 0xec]
push eax
call fcn.010676d2
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 0x106847e
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x10684bd
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
cmp word [ebp - 0x38], di
je 0x1068214
push dword [ebp - 0x170]
push 0x800
call fcn.01062de3
test eax, eax
je 0x1068214
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 0x10684fc
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 0x1067eed
jmp 0x1067e82
mov dword [ebp - 0x168], 8
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push 8
push esi
push dword [ebp - 0x174]
push 0x10064b4
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01043d87
jmp 0x1068669
mov dword [ebp - 0x168], 8
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push 8
push 0x10064b4
push 0x21
jmp 0x106865e
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x22
jmp 0x106865e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x23
jmp 0x106865e
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x24
jmp 0x106865e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x25
jmp 0x106865e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x26
jmp 0x106865e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x27
jmp 0x106865e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x28
jmp 0x106865e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push 0x10064b4
push 0x29
jmp 0x106865e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push dword [ebp - 0x170]
push dword [ebp - 0x174]
push 0x10064b4
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01043dbf
jmp 0x1068669
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push dword [ebp - 0x174]
push 0x10064b4
push 0x20
jmp 0x10685d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068669
test byte [eax + 0x1c], 2
je 0x1068669
cmp byte [eax + 0x19], 2
jb 0x1068669
push dword [ebp - 0x168]
push dword [ebp - 0x174]
push 0x10064b4
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a693
jmp 0x1068669
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10686bb
test byte [eax + 0x1c], 2
je 0x10686bb
cmp byte [eax + 0x19], 2
jb 0x10686bb
push dword [ebp - 0x168]
push 0x10064b4
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x10686bb
mov dword [ebp - 0x168], 0xb
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10686d1
test byte [eax + 0x1c], 2
je 0x10686d1
cmp byte [eax + 0x19], 2
jb 0x10686d1
push 0xb
push 0x10064b4
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
xor esi, esi
cmp dword [ebp - 0x190], esi
je 0x106867f
push dword [ebp - 0x190]
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
cmp dword [ebp - 0x17c], esi
je 0x1068692
push dword [ebp - 0x17c]
call fcn.0105c21c
cmp dword [ebp - 0x180], esi
je 0x10686a6
push dword [ebp - 0x180]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x188], esi
je 0x10686bb
push dword [ebp - 0x188]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x194], 0
je 0x10686d1
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 0x10686f8
push dword [ebp - 0x198]
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_RestoreDC]
cmp dword [ebp - 0x168], 0
jne 0x1068743
cmp dword [ebp - 0x1a4], 0
je 0x1068743
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 0x106875b
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.0105b7af
leave
ret 0x18