Function at 0x1006a5c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa5c
mov eax, dword [0x100df00c]
xor eax, esp
mov dword [esp + 0xa58], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x10], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
push 0x208
mov dword [esp + 0x34], eax
lea eax, [esp + 0x5c]
push 0
push eax
mov dword [esp + 0x30], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [esp + 0x50], eax
mov word [esp + 0x54], ax
push 0x200
push eax
lea eax, [esp + 0x868]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x660]
push 0x200
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x260]
push 0x200
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x460]
push 0x200
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esi]
add esp, 0xc
mov edx, 1
mov dword [esp + 0x28], 0
call fcn.1000d800
test eax, eax
je 0x1006a690
mov edi, dword [eax]
test edi, edi
jne 0x1006a6bf
push ecx
mov ecx, dword [esi]
xor edx, edx
push 0
push 0
call fcn.1000eee0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1006aaf2
mov edx, dword [esi]
mov ecx, edi
call fcn.1000d540
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [esi]
mov eax, dword [edi + 0x24]
push 0x60
push 0
push 0x100ec578
mov dword [ecx + 0x230], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x10
call fcn.100be7ee
add esp, 4
mov dword [esp + 0x10], 0
mov ebx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ebx
push eax
push 0
push 0x21808
push 0
push dword [esp + 0x30]
mov dword [ebx], 0x100caf74
push dword [esp + 0x28]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
mov ecx, dword [esp + 0x10]
sub esp, 8
mov dword [ebx + 8], eax
mov dword [ebx + 4], ecx
mov eax, dword [edi + 0x14]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100cbd40]
mov eax, dword [edi + 0x18]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100cbd40]
cvtpd2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
push ecx
call dword [sym.imp.gdiplus.dll_GdipBitmapSetResolution]
test eax, eax
je 0x1006a771
mov dword [ebx + 8], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov ebx, dword [esp + 0x10]
push 2
push ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.gdiplus.dll_GdipSetPageUnit]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push ebx
call dword [sym.imp.gdiplus.dll_GdipGetDC]
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x1006a7c2
push ebx
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
xor ebx, ebx
jmp 0x1006aabf
push 8
push esi
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0
push dword [edi + 8]
lea ebx, [edi + 4]
push dword [ebx]
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 8]
push 0
push eax
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
push 0
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push 0
push dword [esp + 0x24]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
cmp dword [eax + 0x220], 0x10
je 0x1006a85b
push dword [edi]
call dword [sym.imp.GDI32.dll_GetObjectType]
cmp eax, 0xd
je 0x1006a85b
lea eax, [esp + 0x34]
push eax
push 0x1000bd40
push dword [edi]
push esi
call dword [sym.imp.GDI32.dll_EnumMetaFile]
mov ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x1006a875
push ebx
lea eax, [esp + 0x38]
push eax
push 0x1000c450
push dword [edi]
push esi
call dword [sym.imp.GDI32.dll_EnumEnhMetaFile]
mov ebx, eax
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.gdiplus.dll_GdipReleaseDC]
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
test ebx, ebx
je 0x1006aabf
mov eax, dword [ebp + 0x10]
add eax, 0xffffffec
cmp eax, 9
ja case.0x1006a8a2.21
movzx eax, byte [eax + 0x1006ab20]
jmp dword [eax*4 + 0x1006ab0c]
lea edx, [esp + 0x40]
mov ecx, str.image_bmp
call fcn.10048bf0
push str..bmp
jmp 0x1006a902
lea edx, [esp + 0x40]
mov ecx, str.image_jpeg
call fcn.10048bf0
push str..jpg
jmp 0x1006a902
lea edx, [esp + 0x40]
mov ecx, str.image_png
call fcn.10048bf0
push str..png
jmp 0x1006a902
lea edx, [esp + 0x40]
mov ecx, str.image_tiff
call fcn.10048bf0
push str..tif
jmp 0x1006a902
push 0x100c4490
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [esp + 0x264]
push 0x100
push eax
call ebx
mov eax, dword [esp + 0x30]
add esp, 0xc
push dword [eax]
lea eax, [esp + 0x5c]
push 0x104
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x660]
push 0
push 0
push 0x100
push eax
push 0x100
lea eax, [esp + 0x874]
push eax
push 3
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
lea eax, [esp + 0x660]
cmp dword [ebp + 0x14], 0
je 0x1006a9b7
push eax
lea eax, [esp + 0x464]
push 0x100
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x464]
push eax
lea eax, [esp + 0x868]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x68]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
add esp, 0x18
jmp 0x1006aa7e
xor esi, esi
push esi
push eax
lea eax, [esp + 0x468]
push str._s_02x
push eax
call fcn.10093600
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x474]
push eax
lea eax, [esp + 0x878]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x78]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
lea eax, [esp + 0x80]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 0x30
cmp eax, 0xffffffff
je 0x1006aa7e
cmp esi, 0xff
jg 0x1006aabb
inc esi
lea eax, [esp + 0x660]
push esi
push eax
lea eax, [esp + 0x468]
push str._s_02x
push eax
call fcn.10093600
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x474]
push eax
lea eax, [esp + 0x878]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x78]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
lea eax, [esp + 0x80]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 0x30
cmp eax, 0xffffffff
jne 0x1006aa11
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x40]
push 0
push eax
lea eax, [esp + 0x60]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
test eax, eax
je 0x1006aa9e
mov dword [esi + 8], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1006aab4
lea ecx, [esp + 0x58]
push ecx
push dword [ebp + 0x1c]
push eax
call ebx
add esp, 0xc
mov ebx, 1
jmp 0x1006aac3
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x28], 0
je 0x1006aad1
mov ecx, edi
call fcn.1000d1c0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esp + 0xa64]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret 0x18