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

Disassembly:
sub esp, 0x78
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
push edi
lea eax, [esp + 0x3c]
mov ecx, dword [ebp]
push 0
push eax
push 0
push ecx
call fcn.10084750
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx]
mov dword [esp + 0x68], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 8]
sub eax, edx
mov edx, dword [ebp]
mov ecx, dword [ecx + 0xc]
push edx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0xa4]
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov dword [esp + 0x64], edi
mov edi, dword [ebp + 0x6c]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 0x74]
sub ecx, edi
mov edi, eax
mov dword [esp + 0x18], ecx
call sym.GEAR32PO.OCX_GPb_height_get
sub eax, ebx
dec eax
mov dword [esp + 0x5c], eax
call fcn.100a0c60
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
push eax
call sym.GEAR32PO.OCX_GPb_width_get
mov ecx, dword [ebp + 0x80]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], ecx
mov ebx, dword [eax + esi*4]
mov eax, dword [esp + 0x60]
sub eax, esi
mov ecx, dword [esp + 0x3c]
lea edx, [ebx + edi]
inc eax
mov dword [esp + 0x38], edx
xor edx, edx
div edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0
fild qword [esp + 0x4c]
lea edx, [esp + 0x78]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], 2
fmul qword [str._23333]
fstp qword [esp + 0x4c]
mov edi, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edi
cmp edi, 1
mov eax, edi
ja 0x100393ac
mov eax, 1
inc eax
cmp eax, 2
jbe 0x100393c1
cmp edi, 1
mov esi, edi
ja 0x100393be
mov esi, 1
inc esi
jmp 0x100393c6
mov esi, 2
mov ecx, dword [esp + 0x24]
lea eax, [esi*4]
push eax
push ecx
call fcn.100a0c80
cmp esi, 1
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov dword [edx], eax
jle 0x1003942e
dec esi
lea edi, [eax + 4]
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
fild dword [esp + 0x34]
lea eax, [esi - 1]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul qword [esp + 0x4c]
fdiv st(1)
fsub qword [0x100fc0a8]
call sub.MSVCRT.dll__ftol
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
dec esi
add edi, 4
dec eax
mov dword [esp + 0x2c], eax
jne 0x100393f7
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
fstp st(0)
mov ecx, dword [esp + 0x20]
mov dword [eax], 0xf
mov eax, dword [esp + 0x18]
inc edi
add ecx, 4
dec eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jne 0x100393a0
mov edi, dword [esp + 0x28]
mov ecx, dword [ebp + 0x10]
inc edi
push ecx
mov dword [esp + 0x2c], edi
call fcn.10032ac0
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
lea eax, [edx + edx + 2]
push eax
push edi
call fcn.100a0c80
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
push ecx
push edi
call fcn.100a0c80
mov ebp, dword [ebp + 0x6c]
xor edi, edi
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov dword [esp + 0x34], edi
sub edx, ebp
cmp edx, ebx
jge 0x100394bd
mov eax, esi
mov ecx, dword [eax + 4]
add eax, 4
sub ecx, ebp
inc edi
cmp ecx, ebx
jl 0x100394ac
mov dword [esp + 0x34], edi
mov edx, dword [esp + 0x14]
lea eax, [esi + edi*4]
mov dword [esp + 0x18], edi
mov dword [esp + 0x4c], eax
lea ecx, [ebx + edx]
mov edx, dword [eax]
sub edx, ebp
cmp edx, ecx
jge 0x100394eb
mov edx, dword [esp + 0x18]
add eax, 4
inc edx
mov dword [esp + 0x18], edx
mov edx, dword [eax]
sub edx, ebp
cmp edx, ecx
jl 0x100394d7
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
cmp dword [esp + 0x18], eax
jl 0x10039513
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
push eax
call sym.GEAR32PO.OCX_GPb_width_get
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x14]
xor eax, eax
test edx, edx
mov ecx, edi
mov dword [esp + 0x30], eax
jle 0x1003957a
mov edi, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
cmp ecx, edi
jge 0x10039557
mov eax, dword [esi + ecx*4]
lea edx, [esi + ecx*4]
sub eax, ebx
sub eax, ebp
mov esi, dword [edx]
sub esi, ebx
sub esi, ebp
cmp esi, eax
jne 0x1003954b
inc ecx
add edx, 4
cmp ecx, edi
jl 0x10039539
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov edi, ecx
sub edi, dword [esp + 0x44]
cmp edi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
jne 0x1003956d
mov byte [eax + edi], 1
jmp 0x10039571
mov byte [eax + edi], 0
inc eax
cmp eax, edx
mov dword [esp + 0x30], eax
jl 0x10039523
mov eax, dword [esp + 0x94]
lea ecx, [edx + edx]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x90]
cmp ecx, eax
jge 0x10039760
mov edx, dword [esp + 0x48]
sub eax, ecx
mov dword [esp + 0x30], eax
lea edx, [edx + ecx*4]
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
mov edx, ecx
xor eax, eax
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 + 0x28]
mov eax, dword [esp + 0x5c]
mov edx, dword [ecx]
sub eax, edx
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [edx]
push eax
call sym.GEAR32PO.OCX_GPb_image_run_row_get
mov edi, eax
xor ecx, ecx
mov cx, word [edi + 2]
lea edx, [edi + 2]
mov eax, dword [esi + ecx*4]
sub eax, ebp
cmp eax, ebx
jge 0x10039601
add edx, 2
xor ecx, ecx
mov cx, word [edx]
mov eax, dword [esi + ecx*4]
sub eax, ebp
cmp eax, ebx
jl 0x100395f0
mov ecx, edx
sub ecx, edi
sub ecx, 2
test cl, 2
je 0x1003964a
mov ecx, dword [esp + 0x18]
xor eax, eax
mov ax, word [edx]
cmp eax, ecx
jl 0x1003961c
mov eax, ecx
mov edi, dword [esp + 0x34]
cmp edi, eax
jge 0x10039647
mov ecx, dword [esp + 0x4c]
sub eax, edi
mov edi, eax
mov eax, dword [ecx]
mov esi, dword [esp + 0x1c]
sub eax, ebx
add ecx, 4
sub eax, ebp
inc word [esi + eax*2]
dec edi
lea eax, [esi + eax*2]
jne 0x1003962c
mov esi, dword [esp + 0x10]
add edx, 2
mov edi, dword [esp + 0x38]
xor eax, eax
mov ax, word [edx]
mov ecx, dword [esi + eax*4]
cmp ecx, edi
jge 0x100396a5
mov ecx, dword [esp + 0x18]
xor esi, esi
mov si, word [edx + 2]
cmp esi, ecx
jl 0x1003966a
mov esi, ecx
cmp eax, esi
jge 0x1003968e
mov ecx, dword [esp + 0x10]
sub esi, eax
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
mov edi, dword [esp + 0x1c]
sub eax, ebx
add ecx, 4
sub eax, ebp
inc word [edi + eax*2]
dec esi
lea eax, [edi + eax*2]
jne 0x10039677
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x38]
add edx, 4
xor eax, eax
mov ax, word [edx]
cmp dword [ecx + eax*4], esi
jl 0x1003965a
mov esi, ecx
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
and eax, 0xfffffffe
mov dword [esp + 0x48], eax
mov eax, 0
jle 0x10039705
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
xor ecx, ecx
xor ebx, ebx
mov cl, byte [edx + eax]
mov bx, word [esi]
add esi, 2
mov ecx, dword [esp + ecx*4 + 0x78]
add esi, 2
mov ecx, dword [ecx + ebx*4]
xor ebx, ebx
mov bl, byte [edx + eax + 1]
xor edx, edx
mov dx, word [esi - 2]
mov ebx, dword [esp + ebx*4 + 0x78]
shl ecx, 4
inc eax
or ecx, dword [ebx + edx*4]
mov byte [edi], cl
mov ecx, dword [esp + 0x48]
inc edi
inc eax
cmp eax, ecx
jl 0x100396bf
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x10]
test byte [esp + 0x14], 1
je 0x1003972f
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
xor ecx, ecx
mov cl, byte [edx + eax]
xor edx, edx
mov dx, word [esi + eax*2]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + ecx*4 + 0x78]
mov eax, dword [eax + edx*4]
shl eax, 4
mov byte [edi], al
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [ecx + 0x9c]
mov ecx, dword [esp + 0x28]
add edi, edx
add ecx, 4
dec eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
jne 0x100395a8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10039773
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.100a1010
mov ecx, dword [esp + 0x24]
push ecx
call fcn.100a12c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x18