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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8c]
push edi
lea eax, [esp + 0x30]
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
call fcn.10084750
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov dword [esp + 0x5c], edx
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x68], edx
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x88], ecx
mov ecx, dword [esi + 0x78]
sub ecx, dword [esi + 0x70]
mov esi, edx
mov edx, dword [esp + 0x90]
sub esi, eax
mov dword [esp + 0x20], ecx
mov eax, dword [edx]
push eax
call sym.GEAR32PO.OCX_GPb_height_get
sub eax, ebx
dec eax
mov dword [esp + 0x80], eax
call fcn.100a0c60
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
mov edx, dword [ebx + 0x80]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], edx
mov eax, dword [eax + edi*4]
xor edx, edx
mov dword [esp + 0x2c], eax
add eax, esi
mov dword [esp + 0x3c], eax
mov eax, ebp
sub eax, edi
inc eax
div esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
cmp eax, 5
mov eax, dword [esp + 0x30]
je 0x1003d580
fld qword [0x100fc0c0]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
fild qword [esp + 0x54]
fmul qword [0x100fc0b0]
fsubr qword [0x100fc0b8]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1003d4d9
fstp st(0)
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
jmp 0x1003d4dd
fstp qword [esp + 0x54]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ebx, [esp + 0x6c]
mov dword [esp + 0x28], 2
cmp edi, 1
mov eax, edi
ja 0x1003d4fd
mov eax, 1
inc eax
cmp eax, 2
jbe 0x1003d512
cmp edi, 1
mov esi, edi
ja 0x1003d50f
mov esi, 1
inc esi
jmp 0x1003d517
mov esi, 2
lea ecx, [esi*4]
push ecx
push ebp
call fcn.100a0c80
xor ecx, ecx
mov dword [ebx], eax
test esi, esi
mov dword [esp + 0x14], ecx
jle 0x1003d568
lea edx, [esi - 1]
mov dword [esp + 0x38], edx
mov edx, eax
fild dword [esp + 0x38]
fmul qword [esp + 0x54]
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x1003d556
mov eax, 1
jmp 0x1003d558
xor eax, eax
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, esi
mov dword [esp + 0x14], ecx
jl 0x1003d542
fstp st(0)
mov eax, dword [esp + 0x28]
inc edi
add ebx, 4
dec eax
mov dword [esp + 0x28], eax
jne 0x1003d4f1
jmp 0x1003d62d
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
fild qword [esp + 0x54]
mov edi, dword [esp + 0x18]
lea ebx, [esp + 0x6c]
mov ebp, 2
fmul qword [0x100fc0b0]
fstp qword [esp + 0x54]
cmp edi, 1
mov eax, edi
ja 0x1003d5b3
mov eax, 1
inc eax
cmp eax, 2
jbe 0x1003d5c8
cmp edi, 1
mov esi, edi
ja 0x1003d5c5
mov esi, 1
inc esi
jmp 0x1003d5cd
mov esi, 2
mov edx, dword [esp + 0x1c]
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 0x1003d622
lea edx, [esi - 1]
mov dword [esp + 0x38], edx
mov edx, eax
fild dword [esp + 0x38]
fmul qword [esp + 0x54]
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x1003d610
mov eax, 1
jmp 0x1003d612
xor eax, eax
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, esi
mov dword [esp + 0x14], ecx
jl 0x1003d5fc
fstp st(0)
inc edi
add ebx, 4
dec ebp
jne 0x1003d5a7
mov edi, dword [esp + 0x90]
mov ebp, dword [esp + 0x18]
inc ebp
mov eax, dword [edi + 0x10]
mov dword [esp + 0x18], ebp
push eax
call fcn.10032ac0
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
lea eax, [ebx + ebx + 2]
push eax
push esi
mov dword [esp + 0x54], eax
call fcn.100a0c80
push ebx
push esi
mov dword [esp + 0x1c], eax
call fcn.100a0c80
mov ebp, dword [edi + 0x78]
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
sub ebx, ebp
xor ebp, ebp
mov ecx, dword [eax]
mov dword [esp + 0x38], ebp
sub ecx, ebx
cmp ecx, esi
jge 0x1003d6a0
mov edx, dword [eax + 4]
add eax, 4
sub edx, ebx
inc ebp
cmp edx, esi
jl 0x1003d68f
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add ecx, esi
mov edi, ebp
mov edx, dword [eax + ebp*4]
lea eax, [eax + ebp*4]
sub edx, ebx
mov dword [esp + 0x24], edi
cmp edx, ecx
mov dword [esp + 0x50], eax
jge 0x1003d6d1
mov edx, dword [eax + 4]
add eax, 4
sub edx, ebx
inc edi
cmp edx, ecx
jl 0x1003d6c0
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
cmp edi, eax
jl 0x1003d6f7
mov edx, dword [esp + 0x90]
mov eax, dword [edx]
push eax
call sym.GEAR32PO.OCX_GPb_width_get
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x20]
xor eax, eax
test edx, edx
mov ecx, ebp
mov dword [esp + 0x34], eax
jle 0x1003d762
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
cmp ecx, edi
mov dword [esp + 0x44], ecx
jge 0x1003d73f
mov edx, dword [esp + 0x10]
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 0x1003d737
inc ecx
add edx, 4
cmp ecx, edi
jl 0x1003d725
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov ebp, ecx
sub ebp, dword [esp + 0x44]
cmp ebp, dword [esp + 0x18]
jne 0x1003d751
mov byte [eax + edx], 1
jmp 0x1003d755
mov byte [eax + edx], 0
mov ebp, dword [esp + 0x20]
inc eax
cmp eax, ebp
mov dword [esp + 0x34], eax
jl 0x1003d70f
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
cmp ecx, eax
mov dword [esp + 0x20], 0
jge 0x1003d987
mov edx, dword [esp + 0x48]
sub eax, ecx
mov dword [esp + 0x34], eax
lea edx, [edx + ecx*4]
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x90]
and ecx, 3
mov ebp, dword [esp + 0x2c]
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x80]
sub eax, dword [ecx]
push eax
mov eax, dword [edx]
push eax
call sym.GEAR32PO.OCX_GPb_image_run_row_get
mov esi, eax
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov cx, word [esi + 2]
lea edx, [esi + 2]
mov ecx, dword [eax + ecx*4]
sub ecx, ebx
cmp ecx, ebp
jge 0x1003d7f7
mov ecx, dword [esp + 0x10]
add edx, 2
xor eax, eax
mov ax, word [edx]
mov eax, dword [ecx + eax*4]
sub eax, ebx
cmp eax, ebp
jl 0x1003d7e2
mov ecx, edx
sub ecx, esi
sub ecx, 2
test cl, 2
je 0x1003d847
mov ecx, dword [esp + 0x24]
xor eax, eax
mov ax, word [edx]
cmp eax, ecx
jl 0x1003d812
mov eax, ecx
mov esi, dword [esp + 0x38]
cmp esi, eax
jge 0x1003d83e
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x14]
sub eax, esi
mov esi, eax
mov eax, dword [ecx]
add ecx, 4
sub eax, ebp
sub eax, ebx
inc word [edi + eax*2]
dec esi
lea eax, [edi + eax*2]
jne 0x1003d826
add edx, 2
jmp 0x1003d84b
mov edi, dword [esp + 0x14]
add edx, 2
jmp 0x1003d84b
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
xor eax, eax
mov ax, word [edx]
mov ecx, dword [ecx + eax*4]
cmp ecx, esi
jge 0x1003d8a6
mov ecx, dword [esp + 0x24]
xor esi, esi
mov si, word [edx + 2]
cmp esi, ecx
jl 0x1003d86f
mov esi, ecx
cmp eax, esi
jge 0x1003d88f
mov ecx, dword [esp + 0x10]
sub esi, eax
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
add ecx, 4
sub eax, ebp
sub eax, ebx
inc word [edi + eax*2]
dec esi
lea eax, [edi + eax*2]
jne 0x1003d87c
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
add edx, 4
xor eax, eax
mov ax, word [edx]
mov ecx, dword [ecx + eax*4]
cmp ecx, esi
jl 0x1003d85f
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
mov esi, eax
shr esi, 3
add esi, edx
and eax, 7
jne 0x1003d90c
mov edx, dword [esp + 0x90]
mov eax, dword [edx + 0x10]
push eax
call fcn.10032b70
dec eax
js 0x1003d964
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + eax*2]
mov edi, dword [esp + 0x28]
xor edx, edx
sub ecx, 2
mov dl, byte [edi + eax]
xor edi, edi
mov di, word [ecx + 2]
mov edx, dword [esp + edx*4 + 0x6c]
mov dl, byte [edx + edi*4]
shl dl, 7
mov byte [esi], dl
mov edx, dword [esp + 0x90]
mov edi, dword [edx + 0x9c]
add esi, edi
dec eax
test eax, eax
jge 0x1003d8d8
jmp 0x1003d964
mov ebp, 7
sub ebp, eax
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.10032b70
dec eax
js 0x1003d964
mov edx, dword [esp + 0x14]
lea edi, [edx + eax*2]
mov edx, dword [esp + 0x28]
xor ecx, ecx
sub edi, 2
mov cl, byte [edx + eax]
xor edx, edx
mov dx, word [edi + 2]
mov ecx, dword [esp + ecx*4 + 0x6c]
mov dl, byte [ecx + edx*4]
mov ecx, ebp
shl dl, cl
mov cl, byte [esi]
or cl, dl
mov byte [esi], cl
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 0x9c]
add esi, edx
dec eax
test eax, eax
jge 0x1003d92d
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
inc edx
add ecx, 4
dec eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], eax
jne 0x1003d791
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003d99a
mov edx, dword [esp + 0x1c]
push eax
push edx
call fcn.100a1010
mov eax, dword [esp + 0x1c]
push eax
call fcn.100a12c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x18