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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov eax, dword [esi + 0xdc]
movzx ebx, byte [esi + 0x106]
inc eax
movzx edi, byte [esi + 0xfd]
mov ebp, dword [esi + 0xb8]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x30], al
test ebx, ebx
je 0x1001779d
mov eax, ebx
mov edx, ebx
imul eax, ebp
shr edx, 3
cmp dword [esi + 0xe0], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
je 0x10017408
add eax, 7
mov ecx, edx
imul ecx, ebp
shr eax, 3
cmp ebx, 8
cmovae eax, ecx
cmp dword [esi + 0xe0], eax
je 0x1001740e
push str.internal_row_size_calculation_error
jmp 0x100177a2
mov dword [esp + 0x10], edx
jmp 0x10017412
mov eax, dword [esp + 0x14]
test ebp, ebp
jne 0x10017420
push str.internal_row_width_error
jmp 0x100177a2
mov ecx, eax
and ecx, 7
mov dword [esp + 0x1c], ecx
je 0x1001746d
mov eax, edx
mov edx, dword [esp + 0x14]
imul eax, ebp
add edx, 7
shr edx, 3
cmp ebx, 8
cmovae edx, eax
mov eax, dword [esp + 0x34]
dec eax
add eax, edx
test dword [esi + 0x78], 0x10000
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov al, byte [eax]
mov byte [esp + 0x30], al
mov eax, 0xff
je 0x10017467
shl eax, cl
jmp 0x10017469
sar eax, cl
mov dword [esp + 0x1c], eax
cmp byte [esi + 0xfc], 0
je 0x10017756
mov eax, dword [esi + 0x78]
mov dword [esp + 0x28], eax
test al, 2
je 0x10017756
cmp edi, 6
jae 0x10017756
cmp dword [esp + 0x38], 0
je 0x100174b3
cmp dword [esp + 0x38], 1
jne 0x10017756
mov eax, edi
and eax, 1
je 0x10017756
mov edx, eax
jmp 0x100174b8
mov edx, edi
and edx, 1
lea eax, [edi + 1]
push 3
shr eax, 1
pop ecx
sub ecx, eax
shl edx, cl
and edx, 7
cmp ebp, edx
jbe 0x10017795
cmp ebx, 8
jae 0x100175ae
push 8
xor edx, edx
pop eax
div ebx
test dword [esp + 0x28], 0x10000
mov dword [esp + 0x20], eax
je 0x10017532
cmp dword [esp + 0x38], 0
je 0x10017514
xor ecx, ecx
cmp ebx, 2
setne cl
inc ecx
dec ebx
neg ebx
sbb ebx, ebx
shr edi, 1
and ebx, ecx
imul eax, ebx, 3
add eax, edi
mov esi, dword [eax*4 + 0x100269f8]
jmp 0x10017572
xor eax, eax
cmp ebx, 2
setne al
inc eax
dec ebx
neg ebx
sbb ebx, ebx
and ebx, eax
imul eax, ebx, 6
add eax, edi
mov esi, dword [eax*4 + 0x10026968]
jmp 0x10017572
xor eax, eax
cmp dword [esp + 0x38], eax
je 0x10017558
cmp ebx, 2
setne al
inc eax
dec ebx
neg ebx
sbb ebx, ebx
shr edi, 1
and ebx, eax
imul eax, ebx, 3
add eax, edi
mov esi, dword [eax*4 + 0x10026a1c]
jmp 0x10017572
cmp ebx, 2
setne al
inc eax
dec ebx
neg ebx
sbb ebx, ebx
and ebx, eax
imul eax, ebx, 6
add eax, edi
mov esi, dword [eax*4 + 0x100269b0]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
sub ebx, edx
mov eax, esi
ror esi, 8
movzx ecx, al
test al, al
je 0x1001759d
mov al, byte [ebx + edx]
cmp ecx, 0xff
je 0x1001759b
and al, cl
not cl
and cl, byte [edx]
or al, cl
mov byte [edx], al
mov eax, dword [esp + 0x20]
cmp ebp, eax
jbe 0x1001777b
sub ebp, eax
inc edx
jmp 0x1001757c
test bl, 7
je 0x100175bd
push str.invalid_user_transform_pixel_depth
jmp 0x100177a2
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
shr ebx, 3
imul edx, ebx
imul ebp, ebx
add esi, edx
add edi, edx
sub ebp, edx
cmp dword [esp + 0x38], 0
je 0x100175f5
push 6
pop ecx
sub ecx, dword [esp + 0x20]
mov eax, ebx
shr ecx, 1
mov edx, ebp
shl eax, cl
cmp eax, ebp
cmovbe edx, eax
mov dword [esp + 0x30], edx
jmp 0x100175fb
mov edx, ebx
mov dword [esp + 0x30], ebx
push 7
pop eax
sub eax, dword [esp + 0x20]
shr eax, 1
mov ecx, eax
mov eax, edx
shl ebx, cl
sub eax, 1
je 0x1001774c
sub eax, 1
je 0x10017727
sub eax, 1
je 0x10017711
cmp edx, 0x10
jae 0x100176df
mov eax, edi
xor ecx, ecx
or eax, esi
bt ax, cx
jb 0x100176df
mov eax, ebx
or eax, edx
test al, 1
jne 0x100176df
mov eax, ebx
mov ecx, ebx
or eax, edx
sub ecx, edx
or eax, edi
or eax, esi
test al, 3
jne 0x1001769d
shr ecx, 2
mov dword [esp + 0x28], edx
mov eax, dword [edi]
add edi, 4
mov dword [esi], eax
add esi, 4
sub edx, 4
jne 0x10017661
mov edx, dword [esp + 0x30]
cmp ebp, ebx
jbe 0x10017795
mov eax, ecx
sub ebp, ebx
shl eax, 2
add esi, eax
add edi, eax
cmp edx, ebp
jbe 0x1001765d
sub edi, esi
mov al, byte [edi + esi]
mov byte [esi], al
inc esi
sub ebp, 1
jne 0x1001768d
jmp 0x10017795
shr ecx, 1
mov dword [esp + 0x28], edx
mov ax, word [edi]
dec edx
mov word [esi], ax
lea esi, [esi + 2]
lea edi, [edi + 2]
sub edx, 1
jne 0x100176a3
mov edx, dword [esp + 0x30]
cmp ebp, ebx
jbe 0x10017795
sub ebp, ebx
lea esi, [esi + ecx*2]
lea edi, [edi + ecx*2]
cmp edx, ebp
jbe 0x1001769f
sub edi, esi
mov al, byte [edi + esi]
mov byte [esi], al
inc esi
sub ebp, 1
jne 0x100176cf
jmp 0x10017795
push edx
jmp 0x100176f8
sub ebp, ebx
add edi, ebx
add esi, ebx
mov eax, ebp
cmp dword [esp + 0x30], ebp
cmovbe eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
push eax
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp ebp, ebx
ja 0x100176e2
jmp 0x10017795
add edi, ebx
add esi, ebx
sub ebp, ebx
mov al, byte [edi]
mov byte [esi], al
mov al, byte [edi + 1]
mov byte [esi + 1], al
mov al, byte [edi + 2]
mov byte [esi + 2], al
cmp ebp, ebx
ja 0x1001770b
jmp 0x10017795
mov al, byte [edi]
mov byte [esi], al
mov al, byte [edi + 1]
mov byte [esi + 1], al
cmp ebp, ebx
jbe 0x10017795
sub ebp, ebx
add edi, ebx
add esi, ebx
cmp ebp, 1
ja 0x10017727
mov al, byte [edi]
mov byte [esi], al
jmp 0x10017795
add esi, ebx
add edi, ebx
sub ebp, ebx
mov al, byte [edi]
mov byte [esi], al
cmp ebp, ebx
ja 0x10017746
jmp 0x10017795
mov eax, dword [esp + 0x14]
add eax, 7
imul edx, ebp
shr eax, 3
cmp ebx, 8
cmovae eax, edx
push eax
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x3c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [esp + 0x24]
test edx, edx
je 0x10017795
mov ecx, dword [esp + 0x1c]
mov al, cl
and cl, byte [esp + 0x30]
not al
and al, byte [edx]
or al, cl
mov byte [edx], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push str.internal_row_logic_error
push esi
call fcn.10012103
int3