Function at 0x10679d3
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 0x1067a70
test byte [eax + 0x1c], 2
je 0x1067a70
cmp byte [eax + 0x19], 5
jb 0x1067a70
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 0x1067aa7
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 SysReAllocString
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x184], eax
cmp eax, 0xffffffff
jne 0x1067b29
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1067b18
test byte [eax + 0x1c], 2
je 0x1067b18
cmp byte [eax + 0x19], 2
jb 0x1067b18
push esi
push dword [ebp - 0x174]
push 0x10064b4
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
jmp 0x1068902
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 0x1067b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10688db
test byte [eax + 0x1c], 2
je 0x10688db
cmp byte [eax + 0x19], 2
jb 0x10688db
push dword [ebp - 0x168]
push 0x10064b4
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x10688db
cmp dword [ebp - 0x178], 0x24
jne 0x1068838
push 5
pop ecx
lea edi, [ebp - 0x30]
mov esi, str.FAXCOVER_VER005w
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x1068838
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 0x1067bfb
push 8
pop ecx
mov dword [ebp - 0x168], ecx
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10688c5
test byte [eax + 0x1c], 2
je 0x10688c5
cmp byte [eax + 0x19], 2
jb 0x10688c5
push ecx
push 0x10064b4
push 0xf
jmp 0x1068828
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 0x10687ee
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x178]
jne 0x10687ee
cmp dword [ebp - 0x16c], 0
je 0x1068033
mov edi, dword [ebp - 0x18c]
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov dword [ebp - 0x19c], eax
test eax, eax
jne 0x1067c8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10688c5
test byte [eax + 0x1c], 2
je 0x10688c5
cmp byte [eax + 0x19], 2
jb 0x10688c5
push dword [ebp - 0x168]
push 0x10064b4
push 0x11
jmp 0x1068828
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
test eax, eax
jne 0x1067cd8
mov dword [ebp - 0x168], 0x1f
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10688c5
test byte [eax + 0x1c], 2
je 0x10688c5
cmp byte [eax + 0x19], 2
jb 0x10688c5
push 0
push 0x10064b4
push 0x12
jmp 0x1068828
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [ebp - 0x198], eax
test eax, eax
jne 0x1067d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10688c5
test byte [eax + 0x1c], 2
je 0x10688c5
cmp byte [eax + 0x19], 2
jb 0x10688c5
push dword [ebp - 0x168]
push 0x10064b4
push 0x13
jmp 0x1068828
cmp dword [ebp - 0x1c], 0
jne 0x1067d75
mov dword [ebp - 0x168], 0x12
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10688c5
test byte [eax + 0x1c], 2
je 0x10688c5
cmp byte [eax + 0x19], 2
jb 0x10688c5
push 0x10064b4
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x10688c5
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 0x1067dca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x15
jmp 0x1068868
lea eax, [ebp - 0x290]
push eax
push 0x6c
push esi
call dword [sym.imp.GDI32.dll_GetEnhMetaFileHeader]
test eax, eax
jne 0x1067e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x16
jmp 0x1068868
push edi
push esi
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
test eax, eax
jne 0x1067e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x17
jmp 0x1068868
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 0x1067eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x18
jmp 0x1068868
push 8
push esi
call dword [sym.imp.GDI32.dll_SetMapMode]
test eax, eax
jne 0x1067f16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x19
jmp 0x1068868
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 0x1067f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x1a
jmp 0x1068868
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 0x1067fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x1b
jmp 0x1068868
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 0x1068033
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x1c
jmp 0x1068868
push 0x40
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
mov dword [ebp - 0x188], edi
test edi, edi
jne 0x106807f
push 8
pop ecx
mov dword [ebp - 0x168], ecx
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push ecx
push 0x10064b4
push 0x1d
jmp 0x1068868
and dword [ebp - 0x174], 0
cmp dword [ebp - 0x18], 0
jg 0x10680fd
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 0x10680b8
cmp dword [ebp - 0x178], 6
je 0x1068873
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x2b
jmp 0x1068868
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 0x106879e
cmp dword [ebp - 0x178], 0x7c
jne 0x106879e
mov esi, dword [ebp - 0x34]
lea esi, [esi + esi + 2]
cmp esi, 0x40
jle 0x1068156
push esi
push edi
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
test eax, eax
je 0x10684a2
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 0x106875c
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x178], eax
jne 0x106875c
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
cmp dword [ebp - 0x17c], esi
je 0x10681a8
push dword [ebp - 0x17c]
call fcn.0105c5dc
mov dword [ebp - 0x17c], esi
cmp edi, esi
je 0x10681c0
push edi
call fcn.0106792f
mov dword [ebp - 0x17c], eax
cmp eax, esi
je 0x10684ed
mov edi, dword [ebp - 0x16c]
test edi, edi
je 0x1068222
mov edx, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xa0]
cmp edx, esi
mov dword [ebp - 0x1b0], edx
jg 0x10681e6
mov dword [ebp - 0x1b0], esi
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa4]
cmp eax, ecx
mov dword [ebp - 0x1b4], eax
jl 0x1068202
mov dword [ebp - 0x1b4], ecx
cmp edx, esi
mov dword [ebp - 0x1a8], edx
jl 0x1068212
mov dword [ebp - 0x1a8], esi
cmp eax, ecx
mov dword [ebp - 0x1ac], eax
jg 0x1068222
mov dword [ebp - 0x1ac], ecx
mov dx, word [ebp - 0x38]
test dx, dx
je 0x10682ec
xor ecx, ecx
xor eax, eax
inc ecx
cmp dx, word [eax*2 + 0x1077b84]
je 0x1068248
inc eax
add ecx, ecx
cmp eax, 0x1d
jb 0x1068234
jmp 0x106826f
cmp dword [ebp - 0x1c0], 0
je 0x1068262
mov esi, dword [ebp - 0x1bc]
mov eax, dword [esi + eax*4]
mov dword [ebp - 0x170], eax
jmp 0x1068269
and dword [ebp - 0x170], 0
or dword [ebp - 0x1a0], ecx
mov eax, 0x80f
cmp dx, ax
jne 0x10682ec
test edi, edi
je 0x10682ec
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.0106794b
mov dword [ebp - 0x168], eax
test eax, eax
jne 0x1068526
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 0x10682ff
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x170], eax
cmp edi, esi
je 0x1068481
cmp eax, esi
je 0x1068481
push dword [ebp - 0x9c]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x1b8], eax
cmp eax, 0xffffffff
je 0x1068559
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0106794b
mov dword [ebp - 0x168], eax
cmp eax, esi
jne 0x1068598
cmp dword [ebp + 0x1c], esi
je 0x106835e
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 0x10685cb
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x18c], eax
test eax, eax
je 0x106860a
cmp dword [ebp + 0x1c], 0
je 0x10683fd
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x1068649
test byte [ebp - 0x1ed], 4
ja 0x10683fd
push 0x10064c4
push 0x20
lea eax, [ebp - 0xec]
push eax
call fcn.01009a5d
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 0x1068688
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x10686c7
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
cmp word [ebp - 0x38], di
je 0x106841e
push dword [ebp - 0x170]
push 0x800
call fcn.01063157
test eax, eax
je 0x106841e
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 0x1068706
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 0x10680f7
jmp 0x106808c
mov dword [ebp - 0x168], 8
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push 8
push esi
push dword [ebp - 0x174]
push 0x10064b4
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102d196
jmp 0x1068873
mov dword [ebp - 0x168], 8
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push 8
push 0x10064b4
push 0x21
jmp 0x1068868
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x22
jmp 0x1068868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x23
jmp 0x1068868
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x24
jmp 0x1068868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x25
jmp 0x1068868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x26
jmp 0x1068868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x27
jmp 0x1068868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x28
jmp 0x1068868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push 0x10064b4
push 0x29
jmp 0x1068868
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
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.01044197
jmp 0x1068873
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push dword [ebp - 0x174]
push 0x10064b4
push 0x20
jmp 0x10687de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1068873
test byte [eax + 0x1c], 2
je 0x1068873
cmp byte [eax + 0x19], 2
jb 0x1068873
push dword [ebp - 0x168]
push dword [ebp - 0x174]
push 0x10064b4
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010148b3
jmp 0x1068873
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x168], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10688c5
test byte [eax + 0x1c], 2
je 0x10688c5
cmp byte [eax + 0x19], 2
jb 0x10688c5
push dword [ebp - 0x168]
push 0x10064b4
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x10688c5
mov dword [ebp - 0x168], 0xb
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10688db
test byte [eax + 0x1c], 2
je 0x10688db
cmp byte [eax + 0x19], 2
jb 0x10688db
push 0xb
push 0x10064b4
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
xor esi, esi
cmp dword [ebp - 0x190], esi
je 0x1068889
push dword [ebp - 0x190]
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
cmp dword [ebp - 0x17c], esi
je 0x106889c
push dword [ebp - 0x17c]
call fcn.0105c5dc
cmp dword [ebp - 0x180], esi
je 0x10688b0
push dword [ebp - 0x180]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x188], esi
je 0x10688c5
push dword [ebp - 0x188]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x194], 0
je 0x10688db
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 0x1068902
push dword [ebp - 0x198]
push dword [ebp - 0x16c]
call dword [sym.imp.GDI32.dll_RestoreDC]
cmp dword [ebp - 0x168], 0
jne 0x106894d
cmp dword [ebp - 0x1a4], 0
je 0x106894d
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 0x1068965
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.0105bb63
leave
ret 0x18