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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
push edi
lea eax, [esp + 0x58]
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x78]
push eax
push ecx
push edx
call fcn.10084750
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax]
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x80], edx
mov ecx, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov eax, dword [esp + 0xb4]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0x94], edx
mov edx, dword [esi + 0x74]
mov eax, dword [eax + 0xc]
sub edx, dword [esi + 0x6c]
sub eax, ebp
inc eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x24], eax
mov eax, dword [esi]
sub ecx, edx
push eax
mov dword [esp + 0x2c], ecx
call sym.GEAR32PO.OCX_GPb_height_get
sub eax, ebp
dec eax
mov dword [esp + 0x90], eax
call fcn.100a0c60
mov ecx, dword [esi]
mov dword [esp + 0x44], eax
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
mov edx, dword [esi + 0x80]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x54], edx
mov dword [esp + 0x3c], eax
xor edx, edx
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x60], eax
add eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x94]
sub eax, ebx
inc eax
div ecx
mov ecx, dword [esp + 0x80]
xor edx, edx
sub edi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
div edi
mov ecx, eax
mov eax, dword [esp + 0x74]
cmp eax, 5
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], ecx
je 0x100380b8
fld qword [0x100fc0c0]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
fild qword [esp + 0x34]
fmul qword [0x100fc0b0]
fsubr qword [0x100fc0b8]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10037fca
fstp st(0)
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
jmp 0x10037fce
fstp qword [esp + 0x34]
mov ebp, ecx
lea eax, [esp + 0x64]
mov dword [esp + 0x1c], 2
jmp 0x10037fe2
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
mov ebx, eax
add eax, 8
mov dword [esp + 0x18], 2
mov dword [esp + 0x28], eax
cmp esi, 1
mov ecx, esi
ja 0x10038003
mov ecx, 1
cmp ebp, 1
mov eax, ebp
jg 0x1003800f
mov eax, 1
imul eax, ecx
inc eax
cmp eax, 2
jbe 0x10038036
cmp esi, 1
mov eax, esi
ja 0x10038024
mov eax, 1
cmp ebp, 1
mov edi, ebp
jg 0x10038030
mov edi, 1
imul edi, eax
inc edi
jmp 0x1003803b
mov edi, 2
mov edx, dword [esp + 0x44]
lea ecx, [edi*4]
push ecx
push edx
call fcn.100a0c80
xor ecx, ecx
mov dword [ebx], eax
test edi, edi
mov dword [esp + 0x14], ecx
jle 0x10038090
lea edx, [edi - 1]
mov dword [esp + 0x24], edx
mov edx, eax
fild dword [esp + 0x24]
fmul qword [esp + 0x34]
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x1003807e
mov eax, 1
jmp 0x10038080
xor eax, eax
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, edi
mov dword [esp + 0x14], ecx
jl 0x1003806a
fstp st(0)
mov eax, dword [esp + 0x18]
add ebx, 4
inc esi
dec eax
mov dword [esp + 0x18], eax
jne 0x10037ff7
mov eax, dword [esp + 0x1c]
inc ebp
dec eax
mov dword [esp + 0x1c], eax
jne 0x10037fde
jmp 0x100381b9
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
fild qword [esp + 0x34]
mov ebp, ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], 2
fmul qword [0x100fc0b0]
fstp qword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ebx, eax
add eax, 8
mov dword [esp + 0x1c], 2
mov dword [esp + 0x18], eax
cmp esi, 1
mov ecx, esi
ja 0x10038109
mov ecx, 1
cmp ebp, 1
mov eax, ebp
jg 0x10038115
mov eax, 1
imul eax, ecx
inc eax
cmp eax, 2
jbe 0x1003813c
cmp esi, 1
mov eax, esi
ja 0x1003812a
mov eax, 1
cmp ebp, 1
mov edi, ebp
jg 0x10038136
mov edi, 1
imul edi, eax
inc edi
jmp 0x10038141
mov edi, 2
mov eax, dword [esp + 0x44]
lea edx, [edi*4]
push edx
push eax
call fcn.100a0c80
xor ecx, ecx
mov dword [ebx], eax
test edi, edi
mov dword [esp + 0x14], ecx
jle 0x10038196
lea edx, [edi - 1]
mov dword [esp + 0x28], edx
mov edx, eax
fild dword [esp + 0x28]
fmul qword [esp + 0x34]
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x10038184
mov eax, 1
jmp 0x10038186
xor eax, eax
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, edi
mov dword [esp + 0x14], ecx
jl 0x10038170
fstp st(0)
mov eax, dword [esp + 0x1c]
add ebx, 4
inc esi
dec eax
mov dword [esp + 0x1c], eax
jne 0x100380fd
mov eax, dword [esp + 0x2c]
inc ebp
dec eax
mov dword [esp + 0x2c], eax
jne 0x100380e4
mov esi, dword [esp + 0xa0]
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x10]
inc ebp
mov eax, dword [esi + 0x10]
inc ebx
push eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x14], ebx
call fcn.10032ac0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
lea ecx, [edi + edi + 2]
push ecx
push ebx
call fcn.100a0c80
push edi
push ebx
mov dword [esp + 0x38], eax
call fcn.100a0c80
mov esi, dword [esi + 0x6c]
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
sub esi, ebx
xor ebx, ebx
mov edx, dword [eax]
mov dword [esp + 0x34], esi
sub edx, esi
mov dword [esp + 0x2c], ebx
cmp edx, edi
jge 0x10038235
mov ecx, dword [eax + 4]
add eax, 4
sub ecx, esi
inc ebx
cmp ecx, edi
jl 0x10038224
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
add ecx, edi
mov ebp, ebx
lea eax, [edx + ebx*4]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x78], eax
mov edx, dword [eax]
sub edx, esi
cmp edx, ecx
jge 0x10038265
mov edx, dword [eax + 4]
add eax, 4
sub edx, esi
inc ebp
cmp edx, ecx
jl 0x10038254
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
cmp ebp, eax
jl 0x1003828b
mov edx, dword [esp + 0xa0]
mov eax, dword [edx]
push eax
call sym.GEAR32PO.OCX_GPb_width_get
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x20]
xor eax, eax
test edx, edx
mov ecx, ebx
mov dword [esp + 0x18], eax
jle 0x100382f6
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
cmp ecx, ebx
mov dword [esp + 0x4c], ecx
jge 0x100382d3
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
sub eax, esi
sub eax, edi
mov ebp, dword [edx]
sub ebp, esi
sub ebp, edi
cmp ebp, eax
jne 0x100382cb
inc ecx
add edx, 4
cmp ecx, ebx
jl 0x100382b9
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
mov ebp, ecx
sub ebp, dword [esp + 0x4c]
cmp ebp, dword [esp + 0x10]
jne 0x100382e5
mov byte [eax + edx], 1
jmp 0x100382e9
mov byte [eax + edx], 0
mov ebp, dword [esp + 0x20]
inc eax
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x100382a3
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
cmp ecx, eax
jge 0x1003862a
mov edx, dword [esp + 0x54]
sub eax, ecx
mov dword [esp + 0x28], eax
lea edx, [edx + ecx*4 + 4]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
lea ecx, [eax + eax]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x90]
mov eax, edi
mov ebx, dword [ecx - 4]
mov ecx, dword [ecx]
sub eax, ebx
cmp ecx, edi
mov dword [esp + 0x24], eax
jl 0x10038357
mov ecx, edi
sub edi, ecx
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x1003836f
mov ecx, eax
mov eax, edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edi
cmp eax, edi
mov dword [esp + 0x10], eax
jge 0x1003847d
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [ecx]
push edx
call sym.GEAR32PO.OCX_GPb_image_run_row_get
lea ebx, [eax + 2]
xor ecx, ecx
mov cx, word [ebx]
mov edx, dword [ebp + ecx*4]
sub edx, esi
cmp edx, edi
jge 0x100383bb
add ebx, 2
xor ecx, ecx
mov cx, word [ebx]
mov edx, dword [ebp + ecx*4]
sub edx, esi
cmp edx, edi
jl 0x100383a9
mov ecx, ebx
sub ecx, eax
sub ecx, 2
test cl, 2
je 0x10038408
mov ecx, dword [esp + 0x40]
xor eax, eax
mov ax, word [ebx]
cmp eax, ecx
jl 0x100383d6
mov eax, ecx
cmp dword [esp + 0x2c], eax
jge 0x10038405
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x30]
sub eax, edx
mov edx, eax
mov eax, dword [ecx]
add ecx, 4
sub eax, esi
sub eax, edi
inc word [ebp + eax*2]
dec edx
lea eax, [ebp + eax*2]
jne 0x100383ec
mov ebp, dword [esp + 0x3c]
add ebx, 2
mov ecx, dword [esp + 0x5c]
xor eax, eax
mov ax, word [ebx]
cmp dword [ebp + eax*4], ecx
jge 0x10038462
mov ecx, dword [esp + 0x40]
xor edx, edx
mov dx, word [ebx + 2]
cmp edx, ecx
jl 0x10038427
mov edx, ecx
cmp eax, edx
jge 0x1003844e
lea ecx, [ebp + eax*4]
mov ebp, dword [esp + 0x30]
sub edx, eax
mov eax, dword [ecx]
add ecx, 4
sub eax, esi
sub eax, edi
inc word [ebp + eax*2]
dec edx
lea eax, [ebp + eax*2]
jne 0x10038435
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
add ebx, 4
xor eax, eax
mov ax, word [ebx]
mov ecx, dword [ebp + eax*4]
cmp ecx, edx
jl 0x10038417
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x10038383
mov eax, dword [esp + 0x24]
mov edi, ecx
mov ebp, dword [esp + 0x50]
sub edi, eax
mov eax, dword [esp + 0x20]
sub edi, ebp
mov ebp, dword [esp + 0x1c]
neg edi
sbb edi, edi
xor edx, edx
and edi, 0xfffffffe
mov dword [esp + 0x24], ebp
add edi, 2
cmp eax, 7
mov dword [esp + 0x14], edx
jle 0x100385a5
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
mov ecx, 7
sub ecx, eax
lea esi, [edx + 4]
mov dword [esp + 0x54], ecx
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax + 1]
mov bl, byte [eax]
mov ebp, edi
or ecx, edi
xor edx, edx
or ebp, ebx
mov dx, word [esi - 2]
mov ecx, dword [esp + ecx*4 + 0x64]
mov ebp, dword [esp + ebp*4 + 0x64]
xor ebx, ebx
mov bx, word [esi - 4]
mov dl, byte [ecx + edx*4]
xor ecx, ecx
add esi, 0x10
mov bl, byte [ebp + ebx*4]
mov cl, byte [eax + 2]
shl bl, 1
or dl, bl
or ecx, edi
xor ebx, ebx
mov ebp, dword [esp + 0x24]
mov bx, word [esi - 0x10]
mov ecx, dword [esp + ecx*4 + 0x64]
shl dl, 1
or dl, byte [ecx + ebx*4]
xor ecx, ecx
mov cl, byte [eax + 3]
xor ebx, ebx
mov bx, word [esi - 0xe]
or ecx, edi
shl dl, 1
mov ecx, dword [esp + ecx*4 + 0x64]
add eax, 8
or dl, byte [ecx + ebx*4]
xor ecx, ecx
mov cl, byte [eax - 4]
xor ebx, ebx
mov bx, word [esi - 0xc]
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 [eax - 3]
xor ebx, ebx
mov bx, word [esi - 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 [eax - 2]
xor ebx, ebx
mov bx, word [esi - 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 [eax - 1]
xor ebx, ebx
mov bx, word [esi - 6]
or ecx, edi
shl dl, 1
mov ecx, dword [esp + ecx*4 + 0x64]
or dl, byte [ecx + ebx*4]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x20]
add ecx, eax
mov byte [ebp], dl
mov edx, dword [esp + 0x14]
inc ebp
add edx, 8
cmp ecx, ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], edx
jl 0x100384c0
mov esi, dword [esp + 0x34]
cmp edx, dword [esp + 0x20]
jge 0x100385f9
mov eax, dword [esp + 0x30]
mov byte [ebp], 0
mov dword [esp + 0x10], 7
lea eax, [eax + edx*2]
mov ebx, dword [esp + 0x48]
xor ecx, ecx
add 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 [ebp]
or cl, bl
mov ebx, dword [esp + 0x10]
mov byte [ebp], cl
mov ecx, dword [esp + 0x20]
inc edx
dec ebx
cmp edx, ecx
mov dword [esp + 0x10], ebx
jl 0x100385be
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x18]
add ecx, 4
mov eax, dword [edx + 0x9c]
mov edx, dword [esp + 0x1c]
add edx, eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
jne 0x1003831e
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1003863d
mov ecx, dword [esp + 0x44]
push eax
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, 0x8c
ret 0x18