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

Disassembly:
sub esp, 0x60
mov ecx, dword [edx]
push ebx
mov ebx, dword [edx + 0x14]
push ebp
movzx ebp, byte [eax + 2]
sub dword [esp + 0x6c], 0x20000
sub dword [esp + 0x70], 0x20000
sub dword [esp + 0x74], 0x20000
sub dword [esp + 0x78], 0x20000
push esi
movzx esi, byte [eax]
push edi
movzx edi, byte [eax + 1]
mov eax, dword [edx + 4]
sar ecx, 3
and ecx, 0x3f
add ecx, 1
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x20]
add ebx, ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 0x10]
lea edx, [ecx + ebx*2]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x44], eax
shl ecx, 0x10
lea edx, [esp + 0x78]
push edx
shl eax, 0x10
sub ecx, 0x4ffff
sub eax, 0x4ffff
push ecx
push eax
mov dword [esp + 0x2c], 0
call sym.cxcore099.dll_cvClipLine
add esp, 0x10
test eax, eax
je 0x1003b9cf
mov edx, dword [esp + 0x7c]
sub edx, dword [esp + 0x74]
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x78]
xor ecx, ecx
test edx, edx
setge cl
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
sub ecx, 1
mov ebx, ecx
xor ebx, edx
sub ebx, ecx
xor edx, edx
test eax, eax
setge dl
mov dword [esp + 0x18], ebx
sub edx, 1
mov ebx, edx
xor ebx, eax
mov eax, dword [esp + 0x74]
sub ebx, edx
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
jle 0x1003afb1
mov edx, dword [esp + 0x7c]
mov ebx, ecx
and ebx, edx
xor eax, ebx
mov ebx, ecx
and ebx, eax
xor edx, ebx
mov ebx, ecx
and ebx, edx
xor eax, ebx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x80]
mov ebx, ecx
and ebx, edx
xor eax, ebx
mov ebx, ecx
and ebx, eax
xor edx, ebx
mov ebx, ecx
and ebx, edx
xor eax, ebx
mov dword [esp + 0x78], eax
mov eax, ecx
xor eax, dword [esp + 0x38]
mov dword [esp + 0x2c], 0x10000
sub eax, ecx
cdq
mov ecx, eax
mov eax, dword [esp + 0x18]
mov ebx, edx
or eax, 1
cdq
shld ebx, ecx, 0x10
push edx
push eax
shl ecx, 0x10
push ebx
push ecx
call fcn.100afc50
mov ebx, dword [esp + 0x7c]
mov ecx, eax
mov eax, dword [esp + 0x74]
mov edx, eax
add ebx, 0x10000
and eax, 0xffff
mov dword [esp + 0x7c], ebx
sar edx, 0x10
sar ebx, 0x10
sub ebx, edx
neg eax
imul ecx
mov dword [esp + 0x28], ecx
mov cl, 0x10
mov dword [esp + 0x24], ebx
call fcn.100afd30
mov ecx, dword [esp + 0x78]
lea edx, [ecx + eax + 0x8000]
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
setge al
sar ecx, 0xb
mov dword [esp + 0x78], edx
and ecx, 0x3f
sub eax, 1
and eax, 0x3f
xor eax, ecx
mov ecx, dword [esp + 0x74]
mov edx, ecx
sar edx, 9
and edx, 0x78
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x7c]
sar edx, 9
and edx, 0x78
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x10]
jmp 0x1003b0b8
mov ecx, edx
and ecx, dword [esp + 0x7c]
xor eax, ecx
mov dword [esp + 0x74], eax
mov ecx, edx
and ecx, eax
mov eax, dword [esp + 0x7c]
xor eax, ecx
mov ecx, edx
and ecx, eax
xor dword [esp + 0x74], ecx
mov eax, dword [esp + 0x78]
mov ecx, edx
and ecx, dword [esp + 0x80]
xor eax, ecx
mov dword [esp + 0x78], eax
mov ecx, edx
and ecx, eax
mov eax, dword [esp + 0x80]
xor eax, ecx
mov dword [esp + 0x80], eax
mov ecx, edx
and ecx, eax
xor dword [esp + 0x78], ecx
mov eax, edx
xor eax, dword [esp + 0x34]
sub eax, edx
cdq
mov ecx, eax
mov eax, edx
shld eax, ecx, 0x10
mov dword [esp + 0x38], eax
mov eax, ebx
or eax, 1
cdq
push edx
push eax
mov eax, dword [esp + 0x40]
shl ecx, 0x10
push eax
push ecx
call fcn.100afc50
mov ebx, dword [esp + 0x80]
mov ecx, eax
mov eax, dword [esp + 0x78]
mov edx, eax
add ebx, 0x10000
and eax, 0xffff
mov dword [esp + 0x80], ebx
sar edx, 0x10
sar ebx, 0x10
sub ebx, edx
neg eax
imul ecx
mov dword [esp + 0x2c], ecx
mov cl, 0x10
mov dword [esp + 0x28], 0x10000
mov dword [esp + 0x24], ebx
call fcn.100afd30
mov ecx, dword [esp + 0x74]
lea edx, [ecx + eax + 0x8000]
mov ecx, dword [esp + 0x2c]
xor eax, eax
test ecx, ecx
setge al
sar ecx, 0xb
and ecx, 0x3f
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x78]
sar edx, 9
and edx, 0x78
sub eax, 1
and eax, 0x3f
xor eax, ecx
mov ecx, dword [esp + 0x80]
sar ecx, 9
and ecx, 0x78
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], edx
test al, 0x20
je 0x1003b0c3
mov eax, 0x100
jmp 0x1003b0ca
movzx eax, byte [eax + 0x100b2868]
mov dword [esp + 0x30], eax
shl eax, 7
mov dword [esp + 0x40], eax
mov eax, 0x78
sub eax, edx
mov edx, dword [esp + 0x30]
or eax, 4
imul eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x7c]
or eax, 4
imul eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x10]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x7c], eax
and eax, 0x78
or eax, 4
imul eax, edx
sar eax, 8
and eax, 0x1ff
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
sar eax, 8
and eax, 0x1ff
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x7c]
add eax, 0x80
or eax, 4
imul eax, edx
mov edx, dword [esp + 0x34]
sar eax, 8
and eax, 0x1ff
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x40]
add edx, eax
sar edx, 8
and edx, 0x1ff
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x38]
sar edx, 8
and edx, 0x1ff
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x38]
add edx, eax
mov eax, dword [esp + 0x3c]
sar edx, 8
and edx, 0x1ff
cmp dword [esp + 0x48], 3
mov dword [esp + 0x4c], 0
mov dword [esp + 0x68], edx
jne 0x1003b71a
cmp dword [esp + 0x18], eax
mov edx, dword [esp + 0x14]
jle 0x1003b466
sar ecx, 0x10
test ebx, ebx
lea eax, [ecx + edx]
lea ecx, [eax + ecx*2]
mov dword [esp + 0x14], ecx
jl 0x1003b9cf
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x78]
lea esp, [esp]
xor edx, edx
sar eax, 0x10
sub eax, 1
imul eax, dword [esp + 0x20]
add eax, dword [esp + 0x14]
cmp ecx, 2
setge dl
or ecx, 2
add edx, 1
and ecx, edx
xor edx, edx
lea ecx, [ecx + ecx*2]
cmp ebx, 2
setge dl
or ebx, 2
add edx, 1
and edx, ebx
add ecx, edx
mov edx, dword [esp + ecx*4 + 0x4c]
mov ecx, dword [esp + 0x78]
sar ecx, 0xb
and ecx, 0x1f
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [ecx + 0x100b2908]
imul ecx, edx
mov dword [esp + 0x34], edx
movzx edx, byte [eax]
movzx ebx, ch
movzx ecx, byte [eax + 1]
mov dword [esp + 0x7c], ecx
movzx ecx, byte [eax + 2]
mov dword [esp + 0x10], ecx
mov ecx, esi
sub ecx, edx
imul ecx, ebx
add ecx, 0x7f
sar ecx, 8
add cl, dl
mov edx, edi
sub edx, dword [esp + 0x7c]
movzx ecx, cl
imul edx, ebx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x7c]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x7c], dl
mov edx, ebp
sub edx, dword [esp + 0x10]
imul edx, ebx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x10]
movzx ebx, byte [esp + 0x7c]
movzx edx, dl
mov dword [esp + 0x10], edx
mov edx, esi
sub edx, ecx
imul edx, dword [esp + 0x18]
add edx, 0x7f
sar edx, 8
add dl, cl
mov ecx, dword [esp + 0x18]
mov byte [eax], dl
mov edx, edi
sub edx, ebx
imul edx, ecx
add edx, 0x7f
sar edx, 8
add dl, bl
mov byte [eax + 1], dl
mov edx, ebp
sub edx, dword [esp + 0x10]
imul edx, ecx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x10]
mov byte [eax + 2], dl
add eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x100b2888]
imul edx, dword [esp + 0x34]
movzx ecx, byte [eax + 1]
movzx ebx, dh
movzx edx, byte [eax]
mov dword [esp + 0x7c], ecx
movzx ecx, byte [eax + 2]
mov dword [esp + 0x10], ecx
mov ecx, esi
sub ecx, edx
imul ecx, ebx
add ecx, 0x7f
sar ecx, 8
add cl, dl
mov edx, edi
sub edx, dword [esp + 0x7c]
movzx ecx, cl
imul edx, ebx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x7c]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x7c], dl
mov edx, ebp
sub edx, dword [esp + 0x10]
imul edx, ebx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x10]
movzx ebx, byte [esp + 0x7c]
movzx edx, dl
mov dword [esp + 0x10], edx
mov edx, esi
sub edx, ecx
imul edx, dword [esp + 0x18]
add edx, 0x7f
sar edx, 8
add dl, cl
mov ecx, dword [esp + 0x18]
mov byte [eax], dl
mov edx, edi
sub edx, ebx
imul edx, ecx
add edx, 0x7f
sar edx, 8
add dl, bl
mov byte [eax + 1], dl
mov edx, ebp
sub edx, dword [esp + 0x10]
imul edx, ecx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x10]
mov ecx, 0x100b2984
sub ecx, dword [esp + 0x38]
mov byte [eax + 2], dl
mov edx, dword [ecx]
imul edx, dword [esp + 0x34]
add eax, dword [esp + 0x20]
movzx ebx, dh
movzx ecx, byte [eax + 1]
movzx edx, byte [eax]
mov dword [esp + 0x7c], ecx
movzx ecx, byte [eax + 2]
mov dword [esp + 0x10], ecx
mov ecx, esi
sub ecx, edx
imul ecx, ebx
add ecx, 0x7f
sar ecx, 8
add cl, dl
mov edx, edi
sub edx, dword [esp + 0x7c]
mov dword [esp + 0x18], ebx
imul edx, ebx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x7c]
mov byte [esp + 0x7c], dl
mov edx, ebp
sub edx, dword [esp + 0x10]
movzx ecx, cl
imul edx, ebx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x10]
movzx ebx, byte [esp + 0x7c]
movzx edx, dl
mov dword [esp + 0x10], edx
mov edx, esi
sub edx, ecx
imul edx, dword [esp + 0x18]
add edx, 0x7f
sar edx, 8
add dl, cl
mov ecx, dword [esp + 0x18]
mov byte [eax], dl
mov edx, edi
sub edx, ebx
imul edx, ecx
add edx, 0x7f
sar edx, 8
add dl, bl
mov byte [eax + 1], dl
mov ebx, dword [esp + 0x24]
add dword [esp + 0x14], 3
mov edx, ebp
sub edx, dword [esp + 0x10]
imul edx, ecx
mov ecx, dword [esp + 0x1c]
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x10]
add ecx, 1
mov byte [eax + 2], dl
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x28]
sub ebx, 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebx
jns 0x1003b1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x78]
sar eax, 0x10
imul eax, dword [esp + 0x20]
add edx, eax
test ebx, ebx
mov dword [esp + 0x14], edx
jl 0x1003b9cf
mov eax, ecx
sar eax, 0x10
lea ecx, [edx + eax*2]
xor edx, edx
lea eax, [eax + ecx - 3]
mov ecx, dword [esp + 0x1c]
cmp ecx, 2
setge dl
or ecx, 2
add edx, 1
and ecx, edx
xor edx, edx
cmp ebx, 2
setge dl
or ebx, 2
lea ecx, [ecx + ecx*2]
add edx, 1
and edx, ebx
add ecx, edx
mov edx, dword [esp + ecx*4 + 0x4c]
mov ecx, dword [esp + 0x74]
sar ecx, 0xb
and ecx, 0x1f
mov dword [esp + 0x34], edx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [ecx + 0x100b2908]
imul ecx, edx
movzx edx, byte [eax]
movzx ebx, ch
mov ecx, esi
sub ecx, edx
imul ecx, ebx
mov dword [esp + 0x18], ebx
movzx ebx, byte [eax + 1]
add ecx, 0x7f
sar ecx, 8
add cl, dl
mov edx, edi
sub edx, ebx
imul edx, dword [esp + 0x18]
movzx ebx, byte [eax + 1]
add edx, 0x7f
sar edx, 8
add dl, bl
movzx ebx, byte [eax + 2]
mov byte [esp + 0x7c], dl
mov edx, ebp
sub edx, ebx
imul edx, dword [esp + 0x18]
movzx ebx, byte [eax + 2]
add edx, 0x7f
sar edx, 8
add dl, bl
movzx edx, dl
mov dword [esp + 0x10], edx
movzx ebx, cl
mov ecx, dword [esp + 0x18]
mov edx, esi
sub edx, ebx
imul edx, ecx
add edx, 0x7f
sar edx, 8
add dl, bl
mov byte [eax], dl
movzx edx, byte [esp + 0x7c]
mov ebx, edi
sub ebx, edx
movzx edx, byte [esp + 0x7c]
imul ebx, ecx
add ebx, 0x7f
sar ebx, 8
add bl, dl
mov edx, ebp
sub edx, dword [esp + 0x10]
mov byte [eax + 1], bl
imul edx, ecx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x10]
mov byte [eax + 2], dl
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x100b2888]
imul edx, dword [esp + 0x34]
movzx ecx, byte [eax + 4]
movzx ebx, dh
movzx edx, byte [eax + 3]
mov dword [esp + 0x7c], ecx
movzx ecx, byte [eax + 5]
mov dword [esp + 0x10], ecx
add eax, 3
mov ecx, esi
sub ecx, edx
imul ecx, ebx
add ecx, 0x7f
sar ecx, 8
add cl, dl
mov edx, edi
sub edx, dword [esp + 0x7c]
mov dword [esp + 0x18], ebx
imul edx, ebx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x7c]
add eax, 3
mov byte [esp + 0x7c], dl
mov edx, ebp
sub edx, dword [esp + 0x10]
imul edx, ebx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x10]
movzx ebx, cl
mov ecx, dword [esp + 0x18]
movzx edx, dl
mov dword [esp + 0x10], edx
mov edx, esi
sub edx, ebx
imul edx, ecx
add edx, 0x7f
sar edx, 8
add dl, bl
mov byte [eax - 3], dl
movzx edx, byte [esp + 0x7c]
mov ebx, edi
sub ebx, edx
movzx edx, byte [esp + 0x7c]
imul ebx, ecx
add ebx, 0x7f
sar ebx, 8
add bl, dl
mov edx, ebp
sub edx, dword [esp + 0x10]
mov byte [eax - 2], bl
imul edx, ecx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x10]
mov ecx, 0x100b2984
sub ecx, dword [esp + 0x38]
mov byte [eax - 1], dl
mov edx, dword [ecx]
imul edx, dword [esp + 0x34]
movzx ecx, byte [eax + 1]
mov dword [esp + 0x7c], ecx
movzx ecx, byte [eax + 2]
movzx ebx, dh
movzx edx, byte [eax]
mov dword [esp + 0x10], ecx
mov ecx, esi
sub ecx, edx
imul ecx, ebx
add ecx, 0x7f
sar ecx, 8
add cl, dl
mov edx, edi
sub edx, dword [esp + 0x7c]
mov dword [esp + 0x18], ebx
imul edx, ebx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x7c]
movzx ecx, cl
mov byte [esp + 0x7c], dl
mov edx, ebp
sub edx, dword [esp + 0x10]
add dword [esp + 0x1c], 1
imul edx, ebx
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x10]
movzx ebx, byte [esp + 0x7c]
movzx edx, dl
mov dword [esp + 0x10], edx
mov edx, esi
sub edx, ecx
imul edx, dword [esp + 0x18]
add edx, 0x7f
sar edx, 8
add dl, cl
mov ecx, dword [esp + 0x18]
mov byte [eax], dl
mov edx, edi
sub edx, ebx
imul edx, ecx
add edx, 0x7f
sar edx, 8
add dl, bl
mov byte [eax + 1], dl
mov ebx, dword [esp + 0x24]
mov edx, ebp
sub edx, dword [esp + 0x10]
imul edx, ecx
mov ecx, dword [esp + 0x74]
add ecx, dword [esp + 0x2c]
add edx, 0x7f
sar edx, 8
add dl, byte [esp + 0x10]
mov dword [esp + 0x74], ecx
mov byte [eax + 2], dl
mov edx, dword [esp + 0x14]
add edx, dword [esp + 0x20]
sub ebx, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ebx
jns 0x1003b480
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
cmp dword [esp + 0x18], eax
jle 0x1003b874
sar ecx, 0x10
add dword [esp + 0x14], ecx
test ebx, ebx
jl 0x1003b9cf
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x78]
nop
xor ecx, ecx
mov edi, eax
sar edi, 0x10
sub edi, 1
imul edi, edx
add edi, dword [esp + 0x14]
cmp ebp, 2
setge cl
xor edx, edx
or ebp, 2
add ecx, 1
and ecx, ebp
lea ecx, [ecx + ecx*2]
cmp ebx, 2
setge dl
sar eax, 0xb
and eax, 0x1f
mov ebp, ebx
or ebp, 2
add eax, eax
add eax, eax
add edx, 1
and edx, ebp
add ecx, edx
mov ebp, dword [esp + ecx*4 + 0x4c]
mov ecx, dword [eax + 0x100b2908]
imul ecx, ebp
movzx edx, ch
mov dword [esp + 0x24], edx
movzx edx, byte [edi]
mov ecx, esi
sub ecx, edx
imul ecx, dword [esp + 0x24]
add ecx, 0x7f
sar ecx, 8
add cl, dl
movzx ecx, cl
mov dword [esp + 0x7c], edx
mov edx, esi
sub edx, ecx
imul edx, dword [esp + 0x24]
add edx, 0x7f
mov dword [esp + 0x7c], ecx
sar edx, 8
add dl, cl
mov byte [edi], dl
mov ecx, dword [eax + 0x100b2888]
add edi, dword [esp + 0x20]
imul ecx, ebp
movzx edx, ch
mov dword [esp + 0x24], edx
movzx edx, byte [edi]
mov ecx, esi
sub ecx, edx
imul ecx, dword [esp + 0x24]
add ecx, 0x7f
sar ecx, 8
add cl, dl
movzx ecx, cl
mov dword [esp + 0x7c], edx
mov edx, esi
sub edx, ecx
imul edx, dword [esp + 0x24]
add edx, 0x7f
mov dword [esp + 0x7c], ecx
sar edx, 8
add dl, cl
mov byte [edi], dl
mov edx, dword [esp + 0x20]
mov ecx, 0x100b2984
sub ecx, eax
mov eax, dword [ecx]
imul eax, ebp
add edi, edx
movzx ebp, ah
movzx eax, byte [edi]
mov ecx, esi
sub ecx, eax
imul ecx, ebp
add ecx, 0x7f
sar ecx, 8
add cl, al
add dword [esp + 0x14], 1
movzx eax, cl
mov ecx, esi
sub ecx, eax
imul ecx, ebp
mov ebp, dword [esp + 0x1c]
add ecx, 0x7f
sar ecx, 8
add cl, al
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x28]
add ebp, 1
sub ebx, 1
mov byte [edi], cl
mov dword [esp + 0x78], eax
mov dword [esp + 0x1c], ebp
jns 0x1003b740
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x14]
sar edx, 0x10
imul edx, dword [esp + 0x20]
add eax, edx
test ebx, ebx
mov dword [esp + 0x14], eax
jl 0x1003b9cf
mov ebp, dword [esp + 0x1c]
mov edx, ecx
sar edx, 0x10
lea edi, [edx + eax - 1]
xor eax, eax
cmp ebp, 2
setge al
xor edx, edx
or ebp, 2
add eax, 1
and eax, ebp
lea eax, [eax + eax*2]
cmp ebx, 2
setge dl
mov ebp, ebx
or ebp, 2
add edi, 1
add edi, 1
add edx, 1
and edx, ebp
add eax, edx
mov ebp, dword [esp + eax*4 + 0x4c]
mov eax, ecx
sar eax, 0xb
and eax, 0x1f
add eax, eax
add eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [eax + 0x100b2908]
imul eax, ebp
movzx edx, ah
mov dword [esp + 0x74], edx
movzx edx, byte [edi - 2]
mov eax, esi
sub eax, edx
imul eax, dword [esp + 0x74]
movzx edx, byte [edi - 2]
add eax, 0x7f
sar eax, 8
add al, dl
movzx eax, al
mov edx, esi
sub edx, eax
imul edx, dword [esp + 0x74]
add edx, 0x7f
mov dword [esp + 0x7c], eax
sar edx, 8
add dl, al
mov eax, dword [esp + 0x3c]
mov byte [edi - 2], dl
mov edx, dword [eax + 0x100b2888]
imul edx, ebp
movzx eax, dh
movzx edx, byte [edi - 1]
mov dword [esp + 0x74], eax
mov eax, esi
sub eax, edx
imul eax, dword [esp + 0x74]
add eax, 0x7f
sar eax, 8
add al, dl
mov dword [esp + 0x7c], edx
movzx eax, al
mov edx, esi
sub edx, eax
imul edx, dword [esp + 0x74]
add edx, 0x7f
mov dword [esp + 0x7c], eax
sar edx, 8
add dl, al
mov eax, 0x100b2984
sub eax, dword [esp + 0x3c]
mov byte [edi - 1], dl
mov edx, dword [eax]
imul edx, ebp
movzx ebp, dh
movzx edx, byte [edi]
mov eax, esi
sub eax, edx
imul eax, ebp
mov dword [esp + 0x7c], edx
add eax, 0x7f
sar eax, 8
add al, dl
add ecx, dword [esp + 0x2c]
movzx eax, al
mov edx, esi
sub edx, eax
imul edx, ebp
mov ebp, dword [esp + 0x1c]
add edx, 0x7f
sar edx, 8
add dl, al
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x20]
add ebp, 1
sub ebx, 1
mov byte [edi], dl
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
jns 0x1003b896
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret