Function at 0x1003eb40
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 edx, dword [esp + 0x9c]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xa0]
mov esi, dword [edx + 8]
mov edi, dword [eax]
mov dword [esp + 0x70], esi
mov edx, dword [edx + 0xc]
sub esi, ecx
mov ebx, dword [eax + 4]
mov dword [esp + 0x74], edx
mov ecx, dword [ebp]
mov edx, dword [eax + 8]
push ecx
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 0x6c]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x74]
sub eax, edx
mov dword [esp + 0x14], eax
call sym.GEAR32PO.OCX_GPb_height_get
sub eax, ebx
dec eax
mov dword [esp + 0x5c], eax
call fcn.100a0c60
mov edx, dword [ebp]
mov dword [esp + 0x24], eax
push edx
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 + 0x14], eax
mov dword [esp + 0x48], ecx
mov ebx, dword [eax + edi*4]
mov eax, dword [esp + 0x60]
sub eax, edi
mov ecx, dword [esp + 0x3c]
lea edx, [ebx + esi]
inc eax
mov dword [esp + 0x38], edx
xor edx, edx
div esi
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 0x1003ec3a
mov eax, 1
inc eax
cmp eax, 2
jbe 0x1003ec51
cmp edi, 1
mov eax, edi
ja 0x1003ec4c
mov eax, 1
lea esi, [eax + 1]
jmp 0x1003ec56
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 0x1003ecbe
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 0x1003ec87
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 0x1003ec2e
mov esi, dword [esp + 0x28]
mov ecx, dword [ebp + 0x10]
inc esi
push ecx
mov dword [esp + 0x2c], esi
call fcn.10032b70
mov edx, dword [ebp + 0x10]
mov esi, eax
dec esi
push edx
imul esi, dword [ebp + 0x9c]
call fcn.10032ac0
add esi, eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x24]
lea eax, [edi + edi + 2]
push eax
push esi
call fcn.100a0c80
push edi
push esi
mov dword [esp + 0x20], eax
call fcn.100a0c80
mov ecx, dword [ebp + 0x74]
xor esi, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
sub eax, ecx
mov ecx, dword [esp + 0x14]
mov ebp, eax
mov dword [esp + 0x34], esi
mov edx, dword [ecx]
sub edx, ebp
cmp edx, ebx
jge 0x1003ed60
mov eax, ecx
mov edx, dword [eax + 4]
add eax, 4
sub edx, ebp
inc esi
cmp edx, ebx
jl 0x1003ed4f
mov dword [esp + 0x34], esi
mov edx, dword [ecx + esi*4]
lea eax, [ecx + esi*4]
mov ecx, dword [esp + 0x10]
sub edx, ebp
add ecx, ebx
mov edi, esi
cmp edx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x4c], eax
jge 0x1003ed8d
mov edx, dword [eax + 4]
add eax, 4
sub edx, ebp
inc edi
cmp edx, ecx
jl 0x1003ed7c
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
cmp edi, eax
jl 0x1003edb3
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
push eax
call sym.GEAR32PO.OCX_GPb_width_get
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x10]
xor eax, eax
test edx, edx
mov ecx, esi
mov dword [esp + 0x30], eax
jle 0x1003ee1e
mov esi, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
cmp ecx, esi
jge 0x1003edf3
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
sub eax, ebx
sub eax, ebp
mov edi, dword [edx]
sub edi, ebx
sub edi, ebp
cmp edi, eax
jne 0x1003edef
inc ecx
add edx, 4
cmp ecx, esi
jl 0x1003eddd
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x28]
mov edx, ecx
sub edx, edi
cmp edx, esi
mov edx, dword [esp + 0x20]
jne 0x1003ee0d
mov byte [eax + edx], 1
jmp 0x1003ee11
mov byte [eax + edx], 0
mov edx, dword [esp + 0x10]
inc eax
cmp eax, edx
mov dword [esp + 0x30], eax
jl 0x1003edc3
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
cmp ecx, eax
jge 0x1003eff4
mov edx, dword [esp + 0x48]
sub eax, ecx
mov dword [esp + 0x30], eax
lea edx, [edx + ecx*4]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edi, esi
lea ecx, [eax + eax]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x8c]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
sub eax, dword [ecx]
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, ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
sub eax, ebp
cmp eax, ebx
jge 0x1003eea7
add edx, 2
xor eax, eax
mov ax, word [edx]
mov eax, dword [ecx + eax*4]
sub eax, ebp
cmp eax, ebx
jl 0x1003ee96
mov eax, edx
sub eax, edi
sub eax, 2
test al, 2
je 0x1003eeeb
mov edi, dword [esp + 0x1c]
xor eax, eax
mov ax, word [edx]
cmp eax, edi
jl 0x1003eec1
mov eax, edi
mov edi, dword [esp + 0x34]
cmp edi, eax
jge 0x1003eee8
mov ecx, dword [esp + 0x4c]
sub eax, edi
mov edi, eax
mov eax, dword [ecx]
add ecx, 4
sub eax, ebx
sub eax, ebp
inc word [esi + eax*2]
dec edi
lea eax, [esi + eax*2]
jne 0x1003eed1
mov ecx, dword [esp + 0x14]
add edx, 2
mov edi, dword [esp + 0x38]
xor eax, eax
mov ax, word [edx]
mov ecx, dword [ecx + eax*4]
cmp ecx, edi
jge 0x1003ef48
mov ecx, dword [esp + 0x1c]
xor esi, esi
mov si, word [edx + 2]
cmp esi, ecx
jl 0x1003ef0b
mov esi, ecx
cmp eax, esi
jge 0x1003ef2f
mov ecx, dword [esp + 0x14]
sub esi, eax
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
mov edi, dword [esp + 0x18]
sub eax, ebx
add ecx, 4
sub eax, ebp
inc word [edi + eax*2]
dec esi
lea eax, [edi + eax*2]
jne 0x1003ef18
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
add edx, 4
xor eax, eax
mov ax, word [edx]
cmp dword [ecx + eax*4], esi
jl 0x1003eefb
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
lea eax, [edx - 1]
test eax, eax
jle 0x1003ef9c
lea esi, [esi + eax*2]
mov edx, dword [esp + 0x20]
xor ecx, ecx
xor ebx, ebx
mov cl, byte [edx + eax]
mov bx, word [esi]
sub esi, 2
mov ecx, dword [esp + ecx*4 + 0x78]
sub 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
dec eax
or ecx, dword [ebx + edx*4]
mov byte [edi], cl
inc edi
dec eax
test eax, eax
jg 0x1003ef5a
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
dec ecx
test cl, 1
jne 0x1003efc1
mov ecx, dword [esp + 0x20]
xor edx, edx
mov dl, byte [ecx + eax]
xor ecx, ecx
mov cx, word [esi + eax*2]
mov edx, dword [esp + edx*4 + 0x78]
mov eax, dword [edx + ecx*4]
shl eax, 4
mov byte [edi], al
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 0x9c]
mov eax, dword [esp + 0x30]
sub edx, ecx
mov ecx, dword [esp + 0x28]
add ecx, 4
dec eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
jne 0x1003ee45
jmp 0x1003eff8
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1003f007
mov edx, dword [esp + 0x24]
push esi
push edx
call fcn.100a1010
mov eax, dword [esp + 0x24]
push eax
call fcn.100a12c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x18