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

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x98]
lea eax, [esp + 0x4c]
push 0
lea ecx, [esp + 0x64]
mov edx, dword [edi]
push eax
push ecx
push edx
call fcn.10084750
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax]
mov dword [esp + 0x74], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x78], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0xac]
mov eax, dword [eax + 0xc]
mov esi, dword [ecx]
sub eax, edx
mov edx, dword [esp + 0x98]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x90], ecx
mov ecx, dword [edi + 0x78]
sub ecx, dword [edi + 0x70]
mov edi, eax
mov eax, dword [edx]
push eax
mov dword [esp + 0x18], ecx
call sym.GEAR32PO.OCX_GPb_height_get
sub eax, ebx
dec eax
mov dword [esp + 0x88], eax
call fcn.100a0c60
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x34], eax
mov ecx, dword [ebx]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
mov edx, dword [ebx + 0x80]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], edx
mov eax, dword [eax + esi*4]
xor edx, edx
mov dword [esp + 0x3c], eax
add eax, edi
mov dword [esp + 0x44], eax
mov eax, ebp
sub eax, esi
inc eax
div edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
cmp eax, 5
mov eax, dword [esp + 0x4c]
je 0x1003b8d3
fld qword [0x100fc0c0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
fild qword [esp + 0x28]
fmul qword [0x100fc0b0]
fsubr qword [0x100fc0b8]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1003b82c
fstp st(0)
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x1003b830
fstp qword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
lea ebx, [esp + 0x64]
mov dword [esp + 0x20], 2
cmp edi, 1
mov eax, edi
ja 0x1003b850
mov eax, 1
inc eax
cmp eax, 2
jbe 0x1003b865
cmp edi, 1
mov esi, edi
ja 0x1003b862
mov esi, 1
inc esi
jmp 0x1003b86a
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 + 0x10], ecx
jle 0x1003b8bb
lea edx, [esi - 1]
mov dword [esp + 0x24], edx
mov edx, eax
fild dword [esp + 0x24]
fmul qword [esp + 0x28]
fild dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x1003b8a9
mov eax, 1
jmp 0x1003b8ab
xor eax, eax
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, esi
mov dword [esp + 0x10], ecx
jl 0x1003b895
fstp st(0)
mov eax, dword [esp + 0x20]
inc edi
add ebx, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x1003b844
jmp 0x1003b980
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
fild qword [esp + 0x28]
mov edi, dword [esp + 0x18]
lea ebx, [esp + 0x64]
mov ebp, 2
fmul qword [0x100fc0b0]
fstp qword [esp + 0x28]
cmp edi, 1
mov eax, edi
ja 0x1003b906
mov eax, 1
inc eax
cmp eax, 2
jbe 0x1003b91b
cmp edi, 1
mov esi, edi
ja 0x1003b918
mov esi, 1
inc esi
jmp 0x1003b920
mov esi, 2
mov edx, dword [esp + 0x34]
lea ecx, [esi*4]
push ecx
push edx
call fcn.100a0c80
xor ecx, ecx
mov dword [ebx], eax
test esi, esi
mov dword [esp + 0x10], ecx
jle 0x1003b975
lea edx, [esi - 1]
mov dword [esp + 0x24], edx
mov edx, eax
fild dword [esp + 0x24]
fmul qword [esp + 0x28]
fild dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x1003b963
mov eax, 1
jmp 0x1003b965
xor eax, eax
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, esi
mov dword [esp + 0x10], ecx
jl 0x1003b94f
fstp st(0)
inc edi
add ebx, 4
dec ebp
jne 0x1003b8fa
mov edi, dword [esp + 0x98]
mov esi, dword [esp + 0x18]
inc esi
mov eax, dword [edi + 0x10]
mov dword [esp + 0x18], esi
push eax
call fcn.10032ac0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x5c], eax
lea eax, [ebx + ebx + 2]
push eax
push esi
mov dword [esp + 0x60], eax
call fcn.100a0c80
push ebx
push esi
mov dword [esp + 0x18], eax
call fcn.100a0c80
mov ebx, dword [edi + 0x70]
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
sub ebx, edi
xor ebp, ebp
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
mov dword [esp + 0x48], ebp
sub ecx, ebx
cmp ecx, esi
jge 0x1003b9f7
mov edx, dword [eax + 4]
add eax, 4
sub edx, ebx
inc ebp
cmp edx, esi
jl 0x1003b9e6
mov dword [esp + 0x48], ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add ecx, esi
mov edi, ebp
mov edx, dword [eax + ebp*4]
lea eax, [eax + ebp*4]
sub edx, ebx
mov dword [esp + 0x20], edi
cmp edx, ecx
mov dword [esp + 0x50], eax
jge 0x1003ba28
mov edx, dword [eax + 4]
add eax, 4
sub edx, ebx
inc edi
cmp edx, ecx
jl 0x1003ba17
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x98]
mov ecx, dword [eax]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
cmp edi, eax
jl 0x1003ba4e
mov edx, dword [esp + 0x98]
mov eax, dword [edx]
push eax
call sym.GEAR32PO.OCX_GPb_width_get
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x14]
xor eax, eax
test edx, edx
mov ecx, ebp
mov dword [esp + 0x30], eax
jle 0x1003bab9
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
cmp ecx, edi
mov dword [esp + 0x40], ecx
jge 0x1003ba96
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
sub eax, ebx
sub eax, esi
mov ebp, dword [edx]
sub ebp, ebx
sub ebp, esi
cmp ebp, eax
jne 0x1003ba8e
inc ecx
add edx, 4
cmp ecx, edi
jl 0x1003ba7c
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ebp, ecx
sub ebp, dword [esp + 0x40]
cmp ebp, dword [esp + 0x18]
jne 0x1003baa8
mov byte [eax + edx], 1
jmp 0x1003baac
mov byte [eax + edx], 0
mov ebp, dword [esp + 0x14]
inc eax
cmp eax, ebp
mov dword [esp + 0x30], eax
jl 0x1003ba66
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.10032b60
dec eax
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa0]
cmp ecx, eax
jge 0x1003bd8d
mov edx, dword [esp + 0x54]
sub eax, ecx
mov dword [esp + 0x24], eax
lea edx, [edx + ecx*4]
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x10]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x98]
and ecx, 3
mov ebp, dword [esp + 0x3c]
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x88]
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 + 0x1c]
mov cx, word [esi + 2]
lea edx, [esi + 2]
mov ecx, dword [eax + ecx*4]
sub ecx, ebx
cmp ecx, ebp
jge 0x1003bb5b
mov ecx, dword [esp + 0x1c]
add edx, 2
xor eax, eax
mov ax, word [edx]
mov eax, dword [ecx + eax*4]
sub eax, ebx
cmp eax, ebp
jl 0x1003bb46
mov ecx, edx
sub ecx, esi
sub ecx, 2
test cl, 2
je 0x1003bbab
mov ecx, dword [esp + 0x20]
xor eax, eax
mov ax, word [edx]
cmp eax, ecx
jl 0x1003bb76
mov eax, ecx
mov esi, dword [esp + 0x48]
cmp esi, eax
jge 0x1003bba2
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x10]
sub eax, esi
mov esi, eax
mov eax, dword [ecx]
add ecx, 4
sub eax, ebx
sub eax, ebp
inc word [edi + eax*2]
dec esi
lea eax, [edi + eax*2]
jne 0x1003bb8a
add edx, 2
jmp 0x1003bbaf
mov edi, dword [esp + 0x10]
add edx, 2
jmp 0x1003bbaf
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
xor eax, eax
mov ax, word [edx]
mov ecx, dword [ecx + eax*4]
cmp ecx, esi
jge 0x1003bc0a
mov ecx, dword [esp + 0x20]
xor esi, esi
mov si, word [edx + 2]
cmp esi, ecx
jl 0x1003bbd3
mov esi, ecx
cmp eax, esi
jge 0x1003bbf3
mov ecx, dword [esp + 0x1c]
sub esi, eax
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
add ecx, 4
sub eax, ebx
sub eax, ebp
inc word [edi + eax*2]
dec esi
lea eax, [edi + eax*2]
jne 0x1003bbe0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
add edx, 4
xor eax, eax
mov ax, word [edx]
mov ecx, dword [ecx + eax*4]
cmp ecx, esi
jl 0x1003bbc3
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x98]
mov esi, edi
shr esi, 3
add esi, eax
mov eax, dword [edx + 0x10]
push eax
call fcn.10032b60
dec eax
cmp edi, eax
jne 0x1003bca4
mov edx, dword [esp + 0x98]
mov ecx, edi
and ecx, 7
mov ebp, 7
mov eax, dword [edx + 0x10]
sub ebp, ecx
push eax
xor edi, edi
call fcn.10032b70
test eax, eax
jle 0x1003bd6a
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x38]
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + edi]
mov eax, dword [esp + 0x30]
mov cx, word [eax]
mov edx, dword [esp + edx*4 + 0x64]
add eax, 2
mov dl, byte [edx + ecx*4]
mov ecx, ebp
shl dl, cl
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x30], eax
mov byte [esi], dl
mov edx, dword [ecx + 0x9c]
mov eax, dword [ecx + 0x10]
add esi, edx
push eax
inc edi
call fcn.10032b70
cmp edi, eax
jl 0x1003bc5c
jmp 0x1003bd6a
mov eax, edi
and eax, 7
cmp eax, 7
jne 0x1003bd06
mov ecx, dword [esp + 0x98]
xor edi, edi
mov edx, dword [ecx + 0x10]
push edx
call fcn.10032b70
test eax, eax
jle 0x1003bd6a
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
xor eax, eax
xor edx, edx
mov al, byte [ecx + edi]
mov dx, word [ebp]
add ebp, 2
mov eax, dword [esp + eax*4 + 0x64]
mov cl, byte [eax + edx*4]
mov eax, dword [esp + 0x98]
mov byte [esi], cl
mov ecx, dword [eax + 0x9c]
mov edx, dword [eax + 0x10]
add esi, ecx
push edx
inc edi
call fcn.10032b70
cmp edi, eax
jl 0x1003bccc
jmp 0x1003bd6a
mov ebp, 7
xor edi, edi
sub ebp, eax
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.10032b70
test eax, eax
jle 0x1003bd6a
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + edi]
mov cx, word [ebx]
add ebx, 2
mov edx, dword [esp + edx*4 + 0x64]
mov al, byte [edx + ecx*4]
mov dl, byte [esi]
mov ecx, ebp
shl al, cl
or dl, al
mov eax, dword [esp + 0x98]
mov byte [esi], dl
mov ecx, dword [eax + 0x9c]
add esi, ecx
mov ecx, dword [eax + 0x10]
push ecx
inc edi
call fcn.10032b70
cmp edi, eax
jl 0x1003bd27
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
dec edx
add ecx, 4
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
jne 0x1003baf5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1003bda0
mov edx, dword [esp + 0x34]
push eax
push edx
call fcn.100a1010
mov eax, dword [esp + 0x34]
push eax
call fcn.100a12c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 0x18