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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x103b9004]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x100defb3
mov eax, dword [ebp + 8]
mov dword [esi + 0x44], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x50], eax
mov dword [esi + 0x48], ebx
mov dword [esp + 0x18], str.Width
mov dword [esp + 0x1c], 5
test eax, eax
je 0x100dec9f
lea ecx, [eax + 0xc]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x100dec9f
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], 0
push edx
push ecx
push eax
lea eax, [esp + 0x38]
push eax
movzx eax, byte [ecx + 0xb]
push eax
call fcn.10089090
test eax, eax
je 0x100dec9f
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100dec9f
call fcn.100898b0
jmp 0x100deca1
xor eax, eax
mov ecx, dword [esi + 0x50]
mov dword [esi + 8], eax
mov dword [esp + 0x20], str.Height
mov dword [esp + 0x24], 6
test ecx, ecx
je 0x100decf5
mov eax, dword [ecx + 0x1c]
add ecx, 0xc
test eax, eax
je 0x100decf5
lea edx, [esp + 0x20]
mov dword [esp + 0x30], 0
push edx
push ecx
push eax
lea eax, [esp + 0x3c]
push eax
movzx eax, byte [ecx + 0xb]
push eax
call fcn.10089090
test eax, eax
je 0x100decf5
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100decf5
call fcn.100898b0
jmp 0x100decf7
xor eax, eax
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
test ecx, ecx
jle 0x100defb3
test eax, eax
jle 0x100defb3
cmp ecx, 0x1ffff
jg 0x100defb3
cmp eax, 0x1ffff
jg 0x100defb3
mov eax, dword [ebp + 0x28]
mov ecx, esi
push 0
push 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], eax
call fcn.100df6b0
test eax, eax
je 0x100defb3
mov edi, dword [esi + 0x60]
test edi, edi
je 0x100dedaa
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x100dedaa
test edi, edi
je 0x100ded67
xor edx, edx
mov eax, 0x7fffffff
div edi
cmp ecx, eax
ja 0x100defb3
imul ecx, edi
test ecx, ecx
je 0x100ded80
xor edx, edx
mov eax, 0x7fffffff
div ecx
cmp dword [esi + 8], eax
ja 0x100defb3
mov eax, dword [esi + 8]
imul eax, ecx
lea edi, [eax + 7]
cmp edi, eax
jb 0x100defb3
shr edi, 3
test edi, edi
je 0x100dedaa
xor edx, edx
mov eax, 0x7fffffff
div edi
cmp dword [esi + 0xc], eax
ja 0x100defb3
push 0x1c
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
je 0x100dedda
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
call fcn.1008c4d0
mov ecx, eax
jmp 0x100deddc
xor ecx, ecx
mov eax, dword [esi + 0xc]
imul eax, edi
push 1
mov dword [esi + 0x4c], ecx
push eax
push 0
push ebx
call fcn.1008c510
mov ecx, dword [esi + 0x4c]
call fcn.1008c800
test eax, eax
je 0x100defb3
call fcn.1008c7e0
test eax, eax
je 0x100defb3
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x100dee3c
mov eax, dword [ecx + 4]
test eax, eax
je 0x100dee3c
cmp eax, 0xe
jne 0x100dee3c
push eax
add ecx, 0xc
mov edx, str.CCITTFaxDecode
call fcn.100a4410
add esp, 4
test eax, eax
jne 0x100dee3c
mov dword [esi + 0x60], 1
mov ecx, esi
call fcn.100dfcd0
test eax, eax
je 0x100defb3
cmp dword [esi + 0x74], 0
je 0x100dee74
mov dword [esi + 0x10], 1
mov edi, 1
mov dword [esi + 0x60], 1
mov dword [esi + 0x64], 1
mov dword [esi + 0x14], 1
jmp 0x100deeba
mov ecx, dword [esi + 0x60]
mov eax, ecx
mov edx, dword [esi + 0x64]
imul eax, edx
cmp eax, 1
jne 0x100dee8b
mov dword [esi + 0x10], eax
mov edi, eax
jmp 0x100deeaa
cmp eax, 8
ja 0x100dee9e
mov dword [esi + 0x10], 8
mov edi, 8
jmp 0x100deeaa
mov dword [esi + 0x10], 0x18
mov edi, 0x18
test ecx, ecx
je 0x100defb3
test edx, edx
je 0x100defb3
mov ecx, dword [esi + 8]
xor edx, edx
mov eax, 0x7fffffff
mov dword [esi + 0x18], ecx
div ecx
cmp edi, eax
ja 0x100defb3
imul ecx, edi
mov dword [esi + 0x18], ecx
lea eax, [ecx + 0x1f]
cmp eax, ecx
jb 0x100defb3
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
shr eax, 5
shl eax, 2
mov dword [esi + 0x18], eax
test eax, eax
je 0x100deefd
push eax
call ebx
add esp, 4
jmp 0x100deeff
xor eax, eax
mov ecx, dword [esi + 0x54]
mov edi, dword [ebp + 0x20]
mov dword [esi + 0x80], eax
test ecx, ecx
je 0x100def1a
test edi, edi
je 0x100def1a
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
mov ecx, esi
call fcn.100e0950
cmp dword [esi + 0x78], 0
je 0x100def73
mov ecx, dword [esi + 8]
xor edx, edx
mov eax, 0x7fffffff
mov dword [esi + 0x10], 0x20
div ecx
mov dword [esi + 0x14], 2
mov dword [esi + 0x18], ecx
cmp eax, 0x20
jb 0x100defb3
shl ecx, 5
mov dword [esi + 0x18], ecx
lea eax, [ecx + 0x1f]
cmp eax, ecx
jb 0x100defb3
shr eax, 5
shl eax, 2
mov dword [esi + 0x18], eax
test eax, eax
je 0x100def6b
push eax
call ebx
add esp, 4
jmp 0x100def6d
xor eax, eax
mov dword [esi + 0x84], eax
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x100def88
push dword [esp + 0x14]
mov ecx, esi
call fcn.100e0360
mov dword [ebx], eax
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x100def9a
test edi, edi
je 0x100def9a
mov eax, dword [ecx]
push 0
call dword [eax + 0x14]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.101f3fd0
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101f3fd0
mov esp, ebp
pop ebp
ret 0x24