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

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
push edi
lea eax, [esp + 0x54]
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x60]
push eax
push ecx
push edx
call fcn.10084750
mov eax, dword [esp + 0xac]
mov ecx, dword [eax]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xb0]
mov edx, dword [eax + 4]
mov ebx, dword [ecx]
mov edi, dword [eax + 8]
mov ebp, dword [ecx + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esi + 0x78]
sub ecx, dword [esi + 0x70]
mov esi, dword [esp + 0x74]
sub eax, ebp
sub esi, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x9c]
inc eax
mov edx, dword [ecx]
mov dword [esp + 0x28], eax
push edx
call sym.GEAR32PO.OCX_GPb_height_get
sub eax, ebp
dec eax
mov dword [esp + 0x7c], eax
call fcn.100a0c60
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x38], eax
mov eax, dword [ebp]
push eax
call sym.GEAR32PO.OCX_GPb_width_get
xor edx, edx
mov ecx, dword [ebp + 0x80]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], ecx
mov eax, dword [eax + ebx*4]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x48], eax
add eax, esi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x80]
sub eax, ebx
sub edi, ecx
inc eax
div esi
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
div edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x5c]
cmp eax, 5
je 0x1003ceb9
mov edx, dword [esp + 0x54]
mov dword [esp + 0x30], 0
fld qword [0x100fc0c0]
mov dword [esp + 0x2c], edx
fild qword [esp + 0x2c]
fmul qword [0x100fc0b0]
fsubr qword [0x100fc0b8]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1003cdc6
fstp st(0)
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
jmp 0x1003cdca
fstp qword [esp + 0x2c]
mov ebp, dword [esp + 0x40]
lea eax, [esp + 0x88]
mov dword [esp + 0x1c], 2
jmp 0x1003cde3
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov ebx, eax
add eax, 8
mov dword [esp + 0x10], 2
mov dword [esp + 0x28], eax
cmp edi, 1
mov ecx, edi
ja 0x1003ce04
mov ecx, 1
cmp ebp, 1
mov eax, ebp
jg 0x1003ce10
mov eax, 1
imul eax, ecx
inc eax
cmp eax, 2
jbe 0x1003ce37
cmp edi, 1
mov eax, edi
ja 0x1003ce25
mov eax, 1
cmp ebp, 1
mov esi, ebp
jg 0x1003ce31
mov esi, 1
imul esi, eax
inc esi
jmp 0x1003ce3c
mov esi, 2
mov ecx, dword [esp + 0x38]
lea eax, [esi*4]
push eax
push ecx
call fcn.100a0c80
xor ecx, ecx
mov dword [ebx], eax
test esi, esi
mov dword [esp + 0x14], ecx
jle 0x1003ce91
lea edx, [esi - 1]
mov dword [esp + 0x24], edx
mov edx, eax
fild dword [esp + 0x24]
fmul qword [esp + 0x2c]
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x1003ce7f
mov eax, 1
jmp 0x1003ce81
xor eax, eax
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, esi
mov dword [esp + 0x14], ecx
jl 0x1003ce6b
fstp st(0)
mov eax, dword [esp + 0x10]
add ebx, 4
inc edi
dec eax
mov dword [esp + 0x10], eax
jne 0x1003cdf8
mov eax, dword [esp + 0x1c]
inc ebp
dec eax
mov dword [esp + 0x1c], eax
jne 0x1003cddf
jmp 0x1003cfc3
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x40]
fild qword [esp + 0x2c]
lea ecx, [esp + 0x88]
mov dword [esp + 0x24], 2
mov dword [esp + 0x10], ecx
fmul qword [0x100fc0b0]
fstp qword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ebx, eax
add eax, 8
mov dword [esp + 0x1c], 2
mov dword [esp + 0x10], eax
cmp edi, 1
mov ecx, edi
ja 0x1003cf13
mov ecx, 1
cmp ebp, 1
mov eax, ebp
jg 0x1003cf1f
mov eax, 1
imul eax, ecx
inc eax
cmp eax, 2
jbe 0x1003cf46
cmp edi, 1
mov eax, edi
ja 0x1003cf34
mov eax, 1
cmp ebp, 1
mov esi, ebp
jg 0x1003cf40
mov esi, 1
imul esi, eax
inc esi
jmp 0x1003cf4b
mov esi, 2
mov eax, dword [esp + 0x38]
lea edx, [esi*4]
push edx
push eax
call fcn.100a0c80
xor ecx, ecx
mov dword [ebx], eax
test esi, esi
mov dword [esp + 0x14], ecx
jle 0x1003cfa0
lea edx, [esi - 1]
mov dword [esp + 0x28], edx
mov edx, eax
fild dword [esp + 0x28]
fmul qword [esp + 0x2c]
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x1003cf8e
mov eax, 1
jmp 0x1003cf90
xor eax, eax
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, esi
mov dword [esp + 0x14], ecx
jl 0x1003cf7a
fstp st(0)
mov eax, dword [esp + 0x1c]
add ebx, 4
inc edi
dec eax
mov dword [esp + 0x1c], eax
jne 0x1003cf07
mov eax, dword [esp + 0x24]
inc ebp
dec eax
mov dword [esp + 0x24], eax
jne 0x1003ceee
mov ebp, dword [esp + 0x9c]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x18]
inc edi
mov eax, dword [ebp + 0x10]
inc esi
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x1c], esi
call fcn.10032ac0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
lea eax, [edi + edi + 2]
push eax
push esi
mov dword [esp + 0x6c], eax
call fcn.100a0c80
push edi
push esi
mov dword [esp + 0x1c], eax
call fcn.100a0c80
mov edx, dword [ebp + 0x78]
xor esi, esi
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
sub ebx, edx
mov dword [esp + 0x24], esi
mov edx, dword [eax]
sub edx, ebx
cmp edx, ecx
jge 0x1003d03f
mov edx, dword [eax + 4]
add eax, 4
sub edx, ebx
inc esi
cmp edx, ecx
jl 0x1003d02e
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
mov edi, esi
lea eax, [eax + esi*4]
add ecx, edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x60], eax
mov edx, dword [eax]
sub edx, ebx
cmp edx, ecx
jge 0x1003d073
mov edx, dword [eax + 4]
add eax, 4
sub edx, ebx
inc edi
cmp edx, ecx
jl 0x1003d062
mov dword [esp + 0x3c], edi
mov eax, dword [ebp]
push eax
call sym.GEAR32PO.OCX_GPb_width_get
cmp edi, eax
jl 0x1003d08d
mov ecx, dword [ebp]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x20]
xor eax, eax
test edx, edx
mov ecx, esi
mov dword [esp + 0x10], eax
jle 0x1003d0fc
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
cmp ecx, edi
mov dword [esp + 0x4c], ecx
jge 0x1003d0d9
mov edx, dword [esp + 0x34]
mov eax, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
sub eax, esi
sub eax, ebx
mov ebp, dword [edx]
sub ebp, esi
sub ebp, ebx
cmp ebp, eax
jne 0x1003d0d1
inc ecx
add edx, 4
cmp ecx, edi
jl 0x1003d0bf
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
mov ebp, ecx
sub ebp, dword [esp + 0x4c]
cmp ebp, dword [esp + 0x18]
jne 0x1003d0eb
mov byte [eax + edx], 1
jmp 0x1003d0ef
mov byte [eax + edx], 0
mov ebp, dword [esp + 0x20]
inc eax
cmp eax, ebp
mov dword [esp + 0x10], eax
jl 0x1003d0a9
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
cmp eax, ecx
mov dword [esp + 0x1c], 0
jge 0x1003d396
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x7c]
lea esi, [ecx + eax*4 + 4]
mov dword [esp + 0x10], esi
jmp 0x1003d134
mov edx, dword [esp + 0x7c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x14]
mov ebp, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esi - 4]
mov eax, dword [esi]
mov ecx, edx
sub ecx, edi
cmp eax, edx
mov dword [esp + 0x28], ecx
jl 0x1003d15f
mov eax, edx
sub edx, eax
cmp ecx, edx
mov dword [esp + 0x18], edx
jle 0x1003d177
mov eax, ecx
mov ecx, edx
mov edx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edx
cmp ecx, edx
mov dword [esp + 0x20], ecx
jge 0x1003d281
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x20]
push edx
mov ecx, dword [eax]
push ecx
call sym.GEAR32PO.OCX_GPb_image_run_row_get
lea esi, [eax + 2]
xor edx, edx
mov dx, word [esi]
mov ecx, dword [ebp + edx*4]
sub ecx, ebx
cmp ecx, edi
jge 0x1003d1c3
add esi, 2
xor edx, edx
mov dx, word [esi]
mov ecx, dword [ebp + edx*4]
sub ecx, ebx
cmp ecx, edi
jl 0x1003d1b1
mov edx, esi
sub edx, eax
sub edx, 2
test dl, 2
je 0x1003d210
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov ax, word [esi]
cmp eax, ecx
jl 0x1003d1de
mov eax, ecx
cmp dword [esp + 0x24], eax
jge 0x1003d20d
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
mov ebp, dword [esp + 0x14]
sub eax, edx
mov edx, eax
mov eax, dword [ecx]
add ecx, 4
sub eax, edi
sub eax, ebx
inc word [ebp + eax*2]
dec edx
lea eax, [ebp + eax*2]
jne 0x1003d1f4
mov ebp, dword [esp + 0x34]
add esi, 2
mov ecx, dword [esp + 0x58]
xor eax, eax
mov ax, word [esi]
cmp dword [ebp + eax*4], ecx
jge 0x1003d26a
mov ecx, dword [esp + 0x3c]
xor edx, edx
mov dx, word [esi + 2]
cmp edx, ecx
jl 0x1003d22f
mov edx, ecx
cmp eax, edx
jge 0x1003d256
lea ecx, [ebp + eax*4]
mov ebp, dword [esp + 0x14]
sub edx, eax
mov eax, dword [ecx]
add ecx, 4
sub eax, edi
sub eax, ebx
inc word [ebp + eax*2]
dec edx
lea eax, [ebp + eax*2]
jne 0x1003d23d
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x58]
add esi, 4
xor eax, eax
mov ax, word [esi]
mov ecx, dword [ebp + eax*4]
cmp ecx, edx
jl 0x1003d21f
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x1003d18b
jmp 0x1003d285
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
sub eax, edi
mov edx, dword [esp + 0x2c]
sub eax, esi
neg eax
sbb eax, eax
and al, 0xfe
add eax, 2
mov ebp, eax
mov eax, dword [esp + 0x1c]
mov esi, eax
shr esi, 3
add esi, edx
and eax, 7
jne 0x1003d307
mov edx, dword [esp + 0x9c]
mov eax, dword [edx + 0x10]
push eax
call fcn.10032b70
dec eax
js 0x1003d36a
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + eax*2]
mov edi, dword [esp + 0x44]
xor edx, edx
sub ecx, 2
mov dl, byte [edi + eax]
xor edi, edi
mov di, word [ecx + 2]
or edx, ebp
mov edx, dword [esp + edx*4 + 0x88]
mov dl, byte [edx + edi*4]
shl dl, 7
mov byte [esi], dl
mov edx, dword [esp + 0x9c]
mov edi, dword [edx + 0x9c]
add esi, edi
dec eax
test eax, eax
jge 0x1003d2ce
jmp 0x1003d36a
mov ecx, 7
sub ecx, eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x10]
push ecx
call fcn.10032b70
dec eax
js 0x1003d36a
mov edx, dword [esp + 0x14]
lea edi, [edx + eax*2]
mov edx, dword [esp + 0x44]
xor ecx, ecx
sub edi, 2
mov cl, byte [edx + eax]
xor edx, edx
mov dx, word [edi + 2]
or ecx, ebp
mov ecx, dword [esp + ecx*4 + 0x88]
mov dl, byte [ecx + edx*4]
mov ecx, dword [esp + 0x50]
shl dl, cl
mov cl, byte [esi]
or cl, dl
mov byte [esi], cl
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + 0x9c]
add esi, edx
dec eax
test eax, eax
jge 0x1003d32c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa4]
add edx, 4
inc eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x1c], eax
add eax, edx
cmp eax, ecx
jl 0x1003d12c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003d3a9
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.100a1010
mov ecx, dword [esp + 0x38]
push ecx
call fcn.100a12c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x18