Function at 0x1003d9b0
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 + 0x58]
mov ecx, dword [esi]
push 0
push eax
push 0
push ecx
call fcn.10084750
mov edx, dword [esp + 0xac]
mov eax, dword [edx]
mov dword [esp + 0x68], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x6c], ecx
mov edi, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0xb0]
mov ebx, dword [edx]
mov ebp, dword [edx + 4]
mov eax, dword [edx + 8]
mov dword [esp + 0x80], eax
mov eax, dword [edx + 0xc]
mov edx, dword [esi + 0x78]
sub edx, dword [esi + 0x70]
sub eax, ebp
inc eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x6c]
sub ecx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi]
push ecx
call sym.GEAR32PO.OCX_GPb_height_get
sub eax, ebp
dec eax
mov dword [esp + 0x7c], eax
call fcn.100a0c60
mov edx, dword [esi]
mov dword [esp + 0x3c], eax
push edx
call sym.GEAR32PO.OCX_GPb_width_get
mov ecx, dword [esi + 0x80]
xor edx, edx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x5c], ecx
mov eax, dword [eax + ebx*4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
add eax, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x80]
sub eax, ebx
mov dword [esp + 0x50], 0
inc eax
mov dword [esp + 0x34], 2
div ecx
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
sub edi, eax
mov eax, dword [esp + 0x24]
div edi
mov edx, dword [esp + 0x58]
mov dword [esp + 0x4c], edx
fild qword [esp + 0x4c]
fmul qword [str._23333]
fstp qword [esp + 0x4c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x88]
jmp 0x1003dac1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
add eax, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], 2
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x20]
cmp edx, 1
mov ecx, edx
ja 0x1003daec
mov ecx, 1
mov esi, dword [esp + 0x10]
cmp esi, 1
mov eax, esi
jg 0x1003dafc
mov eax, 1
imul eax, ecx
inc eax
cmp eax, 2
jbe 0x1003db21
cmp edx, 1
mov eax, edx
ja 0x1003db11
mov eax, 1
cmp esi, 1
jg 0x1003db1b
mov esi, 1
imul esi, eax
inc esi
jmp 0x1003db26
mov esi, 2
mov eax, dword [esp + 0x3c]
lea edx, [esi*4]
push edx
push eax
call fcn.100a0c80
mov ebx, eax
cmp esi, 1
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebx
jle 0x1003db7a
dec esi
lea edi, [ebx + 4]
mov dword [esp + 0x24], esi
mov ebp, esi
fild dword [esp + 0x24]
lea edx, [esi - 1]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fmul qword [esp + 0x4c]
fdiv st(1)
fsub qword [0x100fc0a8]
call sub.MSVCRT.dll__ftol
mov dword [edi], eax
dec esi
add edi, 4
dec ebp
jne 0x1003db53
fstp st(0)
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add edx, 4
inc ecx
dec eax
mov dword [ebx], 0xf
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jne 0x1003dadc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
inc ecx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], eax
jne 0x1003dabd
mov esi, dword [esp + 0x9c]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x14]
inc ebp
mov eax, dword [esi + 0x10]
inc ebx
push eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x18], ebx
call fcn.10032ac0
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
lea eax, [edi + edi + 2]
push eax
push ebx
mov dword [esp + 0x6c], eax
call fcn.100a0c80
push edi
push ebx
mov dword [esp + 0x18], eax
call fcn.100a0c80
mov ebp, dword [esi + 0x70]
xor esi, esi
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
sub ebp, ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x44], esi
mov ecx, dword [eax]
sub ecx, ebp
cmp ecx, ebx
jge 0x1003dc37
mov edx, dword [eax + 4]
add eax, 4
sub edx, ebp
inc esi
cmp edx, ebx
jl 0x1003dc26
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add ecx, ebx
mov edi, esi
mov edx, dword [eax + esi*4]
lea eax, [eax + esi*4]
sub edx, ebp
mov dword [esp + 0x20], edi
cmp edx, ecx
mov dword [esp + 0x60], eax
jge 0x1003dc68
mov edx, dword [eax + 4]
add eax, 4
sub edx, ebp
inc edi
cmp edx, ecx
jl 0x1003dc57
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
cmp edi, eax
jl 0x1003dc8e
mov edx, dword [esp + 0x9c]
mov eax, dword [edx]
push eax
call sym.GEAR32PO.OCX_GPb_width_get
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x28]
xor eax, eax
test edx, edx
mov ecx, esi
mov dword [esp + 0x18], eax
jle 0x1003dcf9
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
cmp ecx, esi
mov dword [esp + 0x40], ecx
jge 0x1003dcd6
mov edx, dword [esp + 0x30]
mov eax, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
sub eax, ebp
sub eax, ebx
mov edi, dword [edx]
sub edi, ebp
sub edi, ebx
cmp edi, eax
jne 0x1003dcce
inc ecx
add edx, 4
cmp ecx, esi
jl 0x1003dcbc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edi, ecx
sub edi, dword [esp + 0x40]
cmp edi, dword [esp + 0x14]
jne 0x1003dce8
mov byte [eax + edx], 1
jmp 0x1003dcec
mov byte [eax + edx], 0
mov edi, dword [esp + 0x28]
inc eax
cmp eax, edi
mov dword [esp + 0x18], eax
jl 0x1003dca6
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.10032b60
dec eax
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa4]
cmp ecx, eax
jge 0x1003dfed
mov edx, dword [esp + 0x5c]
sub eax, ecx
mov dword [esp + 0x2c], eax
lea edx, [edx + ecx*4 + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x10]
mov esi, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x7c]
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov eax, edx
mov edi, dword [ecx - 4]
mov ecx, dword [ecx]
sub eax, edi
cmp ecx, edx
mov dword [esp + 0x24], eax
mov esi, ecx
jl 0x1003dd6b
mov esi, edx
mov ecx, edx
sub ecx, esi
cmp eax, ecx
mov dword [esp + 0x34], ecx
jle 0x1003dd85
mov edx, eax
mov eax, ecx
mov ecx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ecx
cmp eax, ecx
mov dword [esp + 0x28], eax
jge 0x1003de80
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x28]
push eax
mov edx, dword [ecx]
push edx
call sym.GEAR32PO.OCX_GPb_image_run_row_get
lea esi, [eax + 2]
xor ecx, ecx
mov cx, word [esi]
mov edx, dword [edi + ecx*4]
sub edx, ebp
cmp edx, ebx
jge 0x1003ddcb
add esi, 2
xor ecx, ecx
mov cx, word [esi]
mov edx, dword [edi + ecx*4]
sub edx, ebp
cmp edx, ebx
jl 0x1003ddba
mov ecx, esi
sub ecx, eax
sub ecx, 2
test cl, 2
je 0x1003de16
mov ecx, dword [esp + 0x20]
xor eax, eax
mov ax, word [esi]
cmp eax, ecx
jl 0x1003dde6
mov eax, ecx
cmp dword [esp + 0x44], eax
jge 0x1003de13
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x10]
sub eax, edx
mov edx, eax
mov eax, dword [ecx]
add ecx, 4
sub eax, ebp
sub eax, ebx
inc word [edi + eax*2]
dec edx
lea eax, [edi + eax*2]
jne 0x1003ddfc
mov edi, dword [esp + 0x30]
add esi, 2
mov ecx, dword [esp + 0x54]
xor eax, eax
mov ax, word [esi]
cmp dword [edi + eax*4], ecx
jge 0x1003de6b
mov ecx, dword [esp + 0x20]
xor edx, edx
mov dx, word [esi + 2]
cmp edx, ecx
jl 0x1003de34
mov edx, ecx
cmp eax, edx
jge 0x1003de58
lea ecx, [edi + eax*4]
mov edi, dword [esp + 0x10]
sub edx, eax
mov eax, dword [ecx]
add ecx, 4
sub eax, ebp
sub eax, ebx
inc word [edi + eax*2]
dec edx
lea eax, [edi + eax*2]
jne 0x1003de41
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x54]
add esi, 4
xor eax, eax
mov ax, word [esi]
mov ecx, dword [edi + eax*4]
cmp ecx, edx
jl 0x1003de24
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x1003dd95
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x48]
sub edi, eax
mov eax, dword [esp + 0x14]
sub edi, esi
mov ecx, dword [esp + 0x4c]
neg edi
cdq
sbb edi, edi
sub eax, edx
mov edx, dword [esp + 0x9c]
mov esi, eax
mov al, byte [esp + 0x14]
and edi, 0xfffffffe
sar esi, 1
add edi, 2
add esi, ecx
test al, 1
mov eax, dword [edx + 0x10]
push eax
jne 0x1003df83
call fcn.10032b60
dec eax
cmp dword [esp + 0x14], eax
jne 0x1003df28
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + 0x10]
push edx
call fcn.10032b70
dec eax
js 0x1003dfca
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax*2]
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
sub edx, 2
mov cl, byte [ebx + eax]
xor ebx, ebx
mov bx, word [edx + 2]
or ecx, edi
mov ecx, dword [esp + ecx*4 + 0x88]
mov ecx, dword [ecx + ebx*4]
shl ecx, 4
mov byte [esi], cl
mov ecx, dword [esp + 0x9c]
mov ebx, dword [ecx + 0x9c]
add esi, ebx
dec eax
test eax, eax
jge 0x1003deec
jmp 0x1003dfc6
mov edx, dword [esp + 0x9c]
mov eax, dword [edx + 0x10]
push eax
call fcn.10032b70
dec eax
js 0x1003dfca
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax*2]
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
sub edx, 2
mov cl, byte [ebx + eax]
xor ebx, ebx
mov bx, word [edx + 2]
or ecx, edi
mov ecx, dword [esp + ecx*4 + 0x88]
mov ecx, dword [ecx + ebx*4]
mov bl, byte [esi]
shl ecx, 4
or bl, cl
mov ecx, dword [esp + 0x9c]
mov byte [esi], bl
mov ebx, dword [ecx + 0x9c]
add esi, ebx
dec eax
test eax, eax
jge 0x1003df46
jmp 0x1003dfc6
call fcn.10032b70
dec eax
js 0x1003dfca
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + eax*2]
mov ebx, dword [esp + 0x1c]
xor edx, edx
sub ecx, 2
mov dl, byte [ebx + eax]
xor ebx, ebx
mov bx, word [ecx + 2]
or edx, edi
mov edx, dword [esp + edx*4 + 0x88]
mov edx, dword [edx + ebx*4]
mov byte [esi], dl
mov edx, dword [esp + 0x9c]
mov ebx, dword [edx + 0x9c]
add esi, ebx
dec eax
test eax, eax
jge 0x1003df92
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
dec edx
add ecx, 4
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
jne 0x1003dd36
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1003e000
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.100a1010
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.100a12c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x18