Function at 0x1003bdc0
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 + 0x60]
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x78]
push eax
push ecx
push edx
call fcn.10084750
mov eax, dword [esp + 0xac]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x7c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x80], ecx
mov ebp, dword [eax + 0xc]
mov eax, dword [esp + 0xb0]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x90], ecx
mov ecx, dword [esi + 0x74]
mov eax, dword [eax + 0xc]
sub ecx, dword [esi + 0x6c]
mov esi, dword [esp + 0x80]
sub eax, edi
sub esi, edx
mov edx, dword [esp + 0x9c]
inc eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [edx]
push eax
call sym.GEAR32PO.OCX_GPb_height_get
sub eax, edi
dec eax
mov dword [esp + 0x8c], eax
call fcn.100a0c60
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x44], eax
mov ecx, dword [edi]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
mov edx, dword [edi + 0x80]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x7c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], edx
mov eax, dword [eax + ebx*4]
xor edx, edx
mov dword [esp + 0x24], eax
add eax, esi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x90]
sub eax, ebx
mov ecx, dword [esp + 0x7c]
inc eax
sub ebp, ecx
div esi
xor edx, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
div ebp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
cmp eax, 5
mov eax, dword [esp + 0x60]
je 0x1003bfee
fld qword [0x100fc0c0]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
fild qword [esp + 0x30]
fmul qword [0x100fc0b0]
fsubr qword [0x100fc0b8]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1003befe
fstp st(0)
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
jmp 0x1003bf02
fstp qword [esp + 0x30]
mov ebp, dword [esp + 0x40]
lea eax, [esp + 0x64]
mov dword [esp + 0x20], 2
jmp 0x1003bf18
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ebx, eax
add eax, 8
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], eax
cmp edi, 1
mov ecx, edi
ja 0x1003bf39
mov ecx, 1
cmp ebp, 1
mov eax, ebp
jg 0x1003bf45
mov eax, 1
imul eax, ecx
inc eax
cmp eax, 2
jbe 0x1003bf6c
cmp edi, 1
mov eax, edi
ja 0x1003bf5a
mov eax, 1
cmp ebp, 1
mov esi, ebp
jg 0x1003bf66
mov esi, 1
imul esi, eax
inc esi
jmp 0x1003bf71
mov esi, 2
mov edx, dword [esp + 0x44]
lea ecx, [esi*4]
push ecx
push edx
call fcn.100a0c80
xor ecx, ecx
mov dword [ebx], eax
test esi, esi
mov dword [esp + 0x14], ecx
jle 0x1003bfc6
lea edx, [esi - 1]
mov dword [esp + 0x50], edx
mov edx, eax
fild dword [esp + 0x50]
fmul qword [esp + 0x30]
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x1003bfb4
mov eax, 1
jmp 0x1003bfb6
xor eax, eax
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, esi
mov dword [esp + 0x14], ecx
jl 0x1003bfa0
fstp st(0)
mov eax, dword [esp + 0x18]
add ebx, 4
inc edi
dec eax
mov dword [esp + 0x18], eax
jne 0x1003bf2d
mov eax, dword [esp + 0x20]
inc ebp
dec eax
mov dword [esp + 0x20], eax
jne 0x1003bf14
jmp 0x1003c0f1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
fild qword [esp + 0x30]
mov ebp, dword [esp + 0x40]
lea ecx, [esp + 0x64]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], 2
fmul qword [0x100fc0b0]
fstp qword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ebx, eax
add eax, 8
mov dword [esp + 0x20], 2
mov dword [esp + 0x18], eax
cmp edi, 1
mov ecx, edi
ja 0x1003c041
mov ecx, 1
cmp ebp, 1
mov eax, ebp
jg 0x1003c04d
mov eax, 1
imul eax, ecx
inc eax
cmp eax, 2
jbe 0x1003c074
cmp edi, 1
mov eax, edi
ja 0x1003c062
mov eax, 1
cmp ebp, 1
mov esi, ebp
jg 0x1003c06e
mov esi, 1
imul esi, eax
inc esi
jmp 0x1003c079
mov esi, 2
mov eax, dword [esp + 0x44]
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 0x1003c0ce
lea edx, [esi - 1]
mov dword [esp + 0x1c], edx
mov edx, eax
fild dword [esp + 0x1c]
fmul qword [esp + 0x30]
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x1003c0bc
mov eax, 1
jmp 0x1003c0be
xor eax, eax
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, esi
mov dword [esp + 0x14], ecx
jl 0x1003c0a8
fstp st(0)
mov eax, dword [esp + 0x20]
add ebx, 4
inc edi
dec eax
mov dword [esp + 0x20], eax
jne 0x1003c035
mov eax, dword [esp + 0x28]
inc ebp
dec eax
mov dword [esp + 0x28], eax
jne 0x1003c01c
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
inc edi
inc esi
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x10]
push eax
call fcn.10032b70
mov ecx, dword [edi + 0x10]
mov esi, eax
dec esi
push ecx
imul esi, dword [edi + 0x9c]
call fcn.10032ac0
add esi, eax
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x2c]
lea edx, [esi + esi + 2]
push edx
push ebx
call fcn.100a0c80
push esi
push ebx
mov ebp, eax
call fcn.100a0c80
mov esi, dword [edi + 0x74]
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
sub ebx, esi
xor esi, esi
mov dword [esp + 0x50], ebx
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
sub ecx, ebx
mov dword [esp + 0x54], esi
cmp ecx, eax
jge 0x1003c5c4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 4]
add eax, 4
sub edx, ebx
inc esi
cmp edx, ecx
jl 0x1003c17e
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
add ecx, edx
mov dword [esp + 0x3c], esi
mov edx, dword [eax + esi*4]
lea eax, [eax + esi*4]
sub edx, ebx
mov dword [esp + 0x30], eax
cmp edx, ecx
jge 0x1003c1c1
mov edx, dword [esp + 0x3c]
add eax, 4
inc edx
mov dword [esp + 0x3c], edx
mov edx, dword [eax]
sub edx, ebx
cmp edx, ecx
jl 0x1003c1ad
mov eax, dword [edi]
push eax
call sym.GEAR32PO.OCX_GPb_width_get
cmp dword [esp + 0x3c], eax
jl 0x1003c1db
mov ecx, dword [edi]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x2c]
xor eax, eax
test edx, edx
mov ecx, esi
mov dword [esp + 0x18], eax
jle 0x1003c24c
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
cmp ecx, esi
mov dword [esp + 0x1c], ecx
jge 0x1003c229
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
mov eax, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
sub eax, edi
sub eax, ebx
mov edi, dword [edx]
sub edi, dword [esp + 0x24]
sub edi, ebx
cmp edi, eax
jne 0x1003c221
inc ecx
add edx, 4
cmp ecx, esi
jl 0x1003c20d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov edi, ecx
sub edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x10]
jne 0x1003c23b
mov byte [eax + edx], 1
jmp 0x1003c23f
mov byte [eax + edx], 0
mov edi, dword [esp + 0x2c]
inc eax
cmp eax, edi
mov dword [esp + 0x18], eax
jl 0x1003c1f3
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
cmp ecx, eax
jge 0x1003c59e
mov edx, dword [esp + 0x58]
sub eax, ecx
mov dword [esp + 0x1c], eax
lea edx, [edx + ecx*4 + 4]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x2c]
mov edi, ebp
lea ecx, [eax + eax]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x8c]
mov edi, dword [edx - 4]
mov edx, dword [edx]
mov eax, ecx
sub eax, edi
cmp edx, ecx
mov dword [esp + 0x28], eax
jl 0x1003c2ab
mov edx, ecx
sub ecx, edx
cmp eax, ecx
mov dword [esp + 0x14], ecx
jle 0x1003c2c3
mov edx, eax
mov eax, ecx
mov ecx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x1003c3c0
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [ecx]
push edx
call sym.GEAR32PO.OCX_GPb_image_run_row_get
lea edi, [eax + 2]
xor ecx, ecx
mov cx, word [edi]
mov edx, dword [esi + ecx*4]
mov ecx, dword [esp + 0x24]
sub edx, ebx
cmp edx, ecx
jge 0x1003c30d
add edi, 2
xor edx, edx
mov dx, word [edi]
mov edx, dword [esi + edx*4]
sub edx, ebx
cmp edx, ecx
jl 0x1003c2fc
mov ecx, edi
sub ecx, eax
sub ecx, 2
test cl, 2
je 0x1003c354
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov ax, word [edi]
cmp eax, ecx
jl 0x1003c328
mov eax, ecx
cmp dword [esp + 0x54], eax
jge 0x1003c351
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
sub eax, edx
mov edx, eax
mov eax, dword [ecx]
add ecx, 4
sub eax, dword [esp + 0x24]
sub eax, ebx
inc word [ebp + eax*2]
dec edx
lea eax, [ebp + eax*2]
jne 0x1003c33a
add edi, 2
mov ecx, dword [esp + 0x5c]
xor eax, eax
mov ax, word [edi]
cmp dword [esi + eax*4], ecx
jge 0x1003c3ab
mov ecx, dword [esp + 0x3c]
xor edx, edx
mov dx, word [edi + 2]
cmp edx, ecx
jl 0x1003c372
mov edx, ecx
cmp eax, edx
jge 0x1003c398
lea ecx, [esi + eax*4]
mov esi, dword [esp + 0x24]
sub edx, eax
mov eax, dword [ecx]
add ecx, 4
sub eax, esi
sub eax, ebx
inc word [ebp + eax*2]
dec edx
lea eax, [ebp + eax*2]
jne 0x1003c37f
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
add edi, 4
xor eax, eax
mov ax, word [edi]
mov ecx, dword [esi + eax*4]
cmp ecx, edx
jl 0x1003c362
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x1003c2d3
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
sub edi, edx
mov esi, dword [esp + 0x20]
sub edi, ecx
lea edx, [eax - 1]
neg edi
sbb edi, edi
mov dword [esp + 0x28], esi
and edi, 0xfffffffe
mov dword [esp + 0x14], edx
add edi, 2
cmp eax, 8
mov dword [esp + 0x58], edi
mov dword [esp + 0x10], 0
jl 0x1003c515
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], 8
lea esi, [eax + edx]
lea eax, [edx + edx]
xor ecx, ecx
xor ebx, ebx
mov cl, byte [esi - 1]
mov bl, byte [esi]
or ecx, edi
xor edx, edx
mov dx, word [ebp + eax - 2]
or edi, ebx
mov ecx, dword [esp + ecx*4 + 0x64]
xor ebx, ebx
mov bx, word [ebp + eax]
mov edi, dword [esp + edi*4 + 0x64]
mov dl, byte [ecx + edx*4]
xor ecx, ecx
mov bl, byte [edi + ebx*4]
mov cl, byte [esi - 2]
mov edi, dword [esp + 0x58]
sub eax, 0x10
shl bl, 1
or dl, bl
or ecx, edi
xor ebx, ebx
sub esi, 8
mov bx, word [ebp + eax + 0xc]
mov ecx, dword [esp + ecx*4 + 0x64]
shl dl, 1
or dl, byte [ecx + ebx*4]
xor ecx, ecx
mov cl, byte [esi + 5]
xor ebx, ebx
mov bx, word [ebp + eax + 0xa]
or ecx, edi
shl dl, 1
mov ecx, dword [esp + ecx*4 + 0x64]
or dl, byte [ecx + ebx*4]
xor ecx, ecx
mov cl, byte [esi + 4]
xor ebx, ebx
mov bx, word [ebp + eax + 8]
or ecx, edi
shl dl, 1
mov ecx, dword [esp + ecx*4 + 0x64]
or dl, byte [ecx + ebx*4]
xor ecx, ecx
mov cl, byte [esi + 3]
xor ebx, ebx
mov bx, word [ebp + eax + 6]
or ecx, edi
shl dl, 1
mov ecx, dword [esp + ecx*4 + 0x64]
or dl, byte [ecx + ebx*4]
xor ecx, ecx
mov cl, byte [esi + 2]
xor ebx, ebx
mov bx, word [ebp + eax + 4]
or ecx, edi
shl dl, 1
mov ecx, dword [esp + ecx*4 + 0x64]
or dl, byte [ecx + ebx*4]
xor ecx, ecx
mov cl, byte [esi + 1]
xor ebx, ebx
mov bx, word [ebp + eax + 2]
or ecx, edi
shl dl, 1
mov ecx, dword [esp + ecx*4 + 0x64]
or dl, byte [ecx + ebx*4]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
inc ecx
sub edx, 8
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
add ecx, 8
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x4c]
add ecx, 8
mov dword [esp + 0x4c], ecx
cmp ecx, ebx
jle 0x1003c414
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x1003c56d
test edx, edx
mov byte [esi], 0
mov dword [esp + 0x10], 7
jl 0x1003c56d
lea eax, [ebp + edx*2]
mov ebx, dword [esp + 0x48]
xor ecx, ecx
sub eax, 2
mov cl, byte [ebx + edx]
xor ebx, ebx
mov bx, word [eax + 2]
or ecx, edi
mov ecx, dword [esp + ecx*4 + 0x64]
mov bl, byte [ecx + ebx*4]
mov ecx, dword [esp + 0x10]
shl bl, cl
mov cl, byte [esi]
or cl, bl
mov ebx, dword [esp + 0x10]
dec edx
dec ebx
test edx, edx
mov byte [esi], cl
mov dword [esp + 0x10], ebx
jge 0x1003c534
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x18]
add ecx, 4
mov eax, dword [edx + 0x9c]
mov edx, dword [esp + 0x20]
sub edx, eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jne 0x1003c274
test ebp, ebp
je 0x1003c5ad
mov ecx, dword [esp + 0x44]
push ebp
push ecx
call fcn.100a1010
mov edx, dword [esp + 0x44]
push edx
call fcn.100a12c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x18
mov ecx, dword [esp + 0x24]
jmp 0x1003c18f