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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov ecx, dword [eax]
push esi
mov dword [esp + 0x4c], ecx
push edi
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp]
mov esi, dword [eax + 4]
push ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
call sym.GEAR32PO.OCX_GPb_height_get
mov ebx, dword [ebp + 0x70]
mov edi, dword [ebp + 0x68]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x6c]
sub eax, esi
mov esi, dword [ebp + 0x78]
dec eax
sub esi, ebx
mov ebx, dword [ebp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x60]
push edx
sub edi, eax
inc esi
sub ebx, ecx
call fcn.10032ac0
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x5c]
push edx
sub eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
dec eax
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
add eax, esi
mov dword [esp + 0x14], eax
call fcn.10032b70
push 1
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.10032b70
push eax
call fcn.10032be0
mov esi, eax
mov dword [esp + 0x34], esi
call fcn.100a0c60
push esi
push eax
mov dword [esp + 0x44], eax
call fcn.100a0c80
mov esi, eax
test esi, esi
mov dword [esp + 0x14], 0
jne 0x1003a83e
push 0x65
push eax
push 0xfffffc18
push 0xb77
push str.C:_accusoftgear_sourceDISPLAYDISPBAND.C
call fcn.10046940
mov edx, dword [esp + 0x3c]
push edx
call fcn.100a12c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x18
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x1003a865
mov ecx, dword [ebp + 0x80]
mov edx, dword [esp + 0x68]
mov eax, dword [ecx + edx*4]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x28], eax
call fcn.100d3780
cmp ebx, edi
ja 0x1003ab63
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
jae 0x1003ab1a
mov ecx, eax
lea edx, [ecx*4]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax + 0x80]
mov eax, dword [eax]
sub edx, dword [edi + ecx]
push edx
push eax
call sym.GEAR32PO.OCX_GPb_image_run_row_get
mov edx, eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x34]
mov edi, esi
mov ebx, ecx
lea ebp, [edx + 2]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov ebx, dword [esp + 0x1c]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov cx, word [ebp]
mov edi, dword [ebx + ecx*4]
mov ecx, dword [esp + 0x18]
sub edi, eax
cmp edi, ecx
jge 0x1003a8f1
add ebp, 2
xor edi, edi
mov di, word [ebp]
mov edi, dword [ebx + edi*4]
sub edi, eax
cmp edi, ecx
jl 0x1003a8df
mov eax, ebp
sub eax, edx
sub eax, 2
test al, 2
je 0x1003a969
xor edx, edx
mov dx, word [ebp]
mov eax, dword [ebx + edx*4]
mov edx, dword [esp + 0x78]
sub eax, edx
mov edx, dword [esp + 0x10]
cmp eax, edx
jl 0x1003a915
mov eax, edx
sub eax, ecx
mov ecx, eax
test ecx, ecx
jg 0x1003a922
mov ecx, 1
cmp ecx, 8
jg 0x1003a933
dec ecx
mov eax, 0xff
sar eax, cl
and byte [esi], al
jmp 0x1003a966
cmp ecx, 0x10
mov byte [esi], 0
mov eax, 1
mov edi, 8
jle 0x1003a959
mov edx, 0x10
mov byte [esi + eax], 0
add edx, 8
inc eax
add edi, 8
cmp edx, ecx
jl 0x1003a94a
sub ecx, edi
mov edx, 0xff
dec ecx
sar edx, cl
and byte [esi + eax], dl
add ebp, 2
mov edi, dword [esp + 0x78]
xor ecx, ecx
mov cx, word [ebp]
mov eax, dword [ebx + ecx*4]
mov ecx, dword [esp + 0x10]
mov edx, eax
sub edx, edi
cmp edx, ecx
jge 0x1003aa55
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x78]
xor ecx, ecx
mov cx, word [ebp + 2]
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x10]
sub ecx, ebx
cmp ecx, edx
jl 0x1003a9a3
mov ecx, edx
sub ecx, dword [esp + 0x18]
test ecx, ecx
mov dword [esp + 0x74], ecx
jg 0x1003a9b7
mov dword [esp + 0x74], 1
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
sub eax, edi
mov edi, 8
sub eax, edx
or dl, 0xff
mov ebx, eax
mov ecx, ebx
and ecx, 7
sub edi, ecx
mov ecx, edi
shl dl, cl
lea ecx, [ebx + edi]
sar eax, 3
cmp ecx, dword [esp + 0x74]
jl 0x1003a9fa
mov ecx, dword [esp + 0x74]
sub ecx, edi
sub ecx, ebx
mov ebx, 0xff
add ecx, 7
sar ebx, cl
or dl, bl
jmp 0x1003aa29
mov bl, byte [esi + eax]
and bl, dl
mov edx, ecx
mov ecx, dword [esp + 0x74]
mov byte [esi + eax], bl
lea edi, [edx + 8]
inc eax
cmp edi, ecx
jge 0x1003aa1f
mov byte [esi + eax], 0
add edi, 8
inc eax
add edx, 8
cmp edi, ecx
jl 0x1003aa10
sub ecx, edx
mov edx, 0xff
dec ecx
sar edx, cl
mov cl, byte [esi + eax]
add ebp, 4
and cl, dl
mov edi, dword [esp + 0x78]
xor edx, edx
mov byte [esi + eax], cl
mov dx, word [ebp]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
cmp ecx, edx
jl 0x1003a986
mov ebp, dword [esp + 0x64]
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x1003aaa4
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x1003aaa4
mov edx, dword [ebp + 0x80]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + edx]
mov edx, dword [esp + 0x20]
cmp edx, eax
je 0x1003aaa4
mov edx, dword [ebp + 0x68]
mov ebx, dword [esp + 0x44]
mov edi, eax
mov eax, dword [ebp + 0x60]
sub edx, eax
mov eax, ebx
push edx
mov edx, dword [esp + 0x34]
sub eax, edi
mov dword [esp + 0x24], edi
push eax
push edx
call ecx
test eax, eax
je 0x1003ab39
mov eax, dword [ebp + 0x10]
push eax
call fcn.10032ac0
mov ecx, dword [esp + 0x14]
mov edx, ecx
and ecx, 7
shr edx, 3
add eax, edx
mov edx, 0x80
sar edx, cl
mov ecx, dword [esp + 0x38]
lea edi, [ecx - 1]
test edi, edi
not dl
jl 0x1003aaf4
mov ecx, edi
mov ebx, 0x80
and ecx, 7
sar ebx, cl
mov ecx, edi
sar ecx, 3
mov cl, byte [ecx + esi]
test cl, bl
jne 0x1003aae9
and byte [eax], dl
mov ebx, dword [ebp + 0x9c]
add eax, ebx
dec edi
jns 0x1003aacf
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
add edx, 4
inc eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x14], eax
add eax, edx
cmp eax, ecx
jb 0x1003a88a
mov ecx, dword [esp + 0x3c]
push esi
push ecx
call fcn.100a1010
mov edx, dword [esp + 0x3c]
push edx
call fcn.100a12c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x18
mov eax, dword [ebp + 0x68]
mov edx, dword [ebp + 0x60]
sub eax, edx
sub ebx, edi
push eax
push ebx
push 0xfffff7bf
push 0xc4c
push str.C:_accusoftgear_sourceDISPLAYDISPBAND.C
call fcn.10046940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x18
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x1003ab8a
mov ecx, dword [ebp + 0x80]
mov edx, dword [esp + 0x68]
mov eax, dword [ecx + edx*4]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x28], eax
call fcn.100d3780
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
mov dword [esp + 0x68], eax
jae 0x1003ab1a
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax + 0x80]
mov eax, dword [eax]
sub edx, dword [ecx + edi*4]
push edx
push eax
call sym.GEAR32PO.OCX_GPb_image_run_row_get
mov edx, eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x34]
mov edi, esi
mov ebx, ecx
lea ebp, [edx + 2]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov ebx, dword [esp + 0x1c]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov cx, word [ebp]
mov edi, dword [ebx + ecx*4]
mov ecx, dword [esp + 0x18]
sub edi, eax
cmp edi, ecx
jge 0x1003ac01
add ebp, 2
xor edi, edi
mov di, word [ebp]
mov edi, dword [ebx + edi*4]
sub edi, eax
cmp edi, ecx
jl 0x1003abef
mov eax, ebp
sub eax, edx
sub eax, 2
test al, 2
je 0x1003ac79
xor edx, edx
mov dx, word [ebp]
mov eax, dword [ebx + edx*4]
mov edx, dword [esp + 0x78]
sub eax, edx
mov edx, dword [esp + 0x10]
cmp eax, edx
jl 0x1003ac25
mov eax, edx
sub eax, ecx
mov ecx, eax
test ecx, ecx
jg 0x1003ac32
mov ecx, 1
cmp ecx, 8
jg 0x1003ac43
dec ecx
mov eax, 0xff
sar eax, cl
and byte [esi], al
jmp 0x1003ac76
cmp ecx, 0x10
mov byte [esi], 0
mov eax, 1
mov edi, 8
jle 0x1003ac69
mov edx, 0x10
mov byte [esi + eax], 0
add edx, 8
inc eax
add edi, 8
cmp edx, ecx
jl 0x1003ac5a
sub ecx, edi
mov edx, 0xff
dec ecx
sar edx, cl
and byte [esi + eax], dl
add ebp, 2
mov edi, dword [esp + 0x78]
xor ecx, ecx
mov cx, word [ebp]
mov eax, dword [ebx + ecx*4]
mov ecx, dword [esp + 0x10]
mov edx, eax
sub edx, edi
cmp edx, ecx
jge 0x1003ad65
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x78]
xor ecx, ecx
mov cx, word [ebp + 2]
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x10]
sub ecx, ebx
cmp ecx, edx
jl 0x1003acb3
mov ecx, edx
sub ecx, dword [esp + 0x18]
test ecx, ecx
mov dword [esp + 0x74], ecx
jg 0x1003acc7
mov dword [esp + 0x74], 1
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
sub eax, edi
mov edi, 8
sub eax, edx
or dl, 0xff
mov ebx, eax
mov ecx, ebx
and ecx, 7
sub edi, ecx
mov ecx, edi
shl dl, cl
lea ecx, [ebx + edi]
sar eax, 3
cmp ecx, dword [esp + 0x74]
jl 0x1003ad0a
mov ecx, dword [esp + 0x74]
sub ecx, edi
sub ecx, ebx
mov ebx, 0xff
add ecx, 7
sar ebx, cl
or dl, bl
jmp 0x1003ad39
mov bl, byte [esi + eax]
and bl, dl
mov edx, ecx
mov ecx, dword [esp + 0x74]
mov byte [esi + eax], bl
lea edi, [edx + 8]
inc eax
cmp edi, ecx
jge 0x1003ad2f
mov byte [esi + eax], 0
add edi, 8
inc eax
add edx, 8
cmp edi, ecx
jl 0x1003ad20
sub ecx, edx
mov edx, 0xff
dec ecx
sar edx, cl
mov cl, byte [esi + eax]
add ebp, 4
and cl, dl
mov edi, dword [esp + 0x78]
xor edx, edx
mov byte [esi + eax], cl
mov dx, word [ebp]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
cmp ecx, edx
jl 0x1003ac96
mov edi, dword [esp + 0x64]
mov eax, dword [edi + 0x34]
test eax, eax
je 0x1003adb4
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x1003adb4
mov edx, dword [edi + 0x80]
mov eax, dword [esp + 0x68]
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0x20]
cmp edx, eax
je 0x1003adb4
mov edx, dword [edi + 0x68]
mov ebp, dword [esp + 0x44]
mov ebx, eax
mov eax, dword [edi + 0x60]
sub edx, eax
mov eax, ebp
push edx
mov edx, dword [esp + 0x34]
sub eax, ebx
mov dword [esp + 0x24], ebx
push eax
push edx
call ecx
test eax, eax
je 0x1003aed2
mov eax, dword [edi + 0x10]
push eax
call fcn.10032ac0
mov ecx, dword [esp + 0x14]
mov edx, ecx
and ecx, 7
shr edx, 3
add eax, edx
mov edx, 0x80
sar edx, cl
mov ecx, dword [esp + 0x38]
lea edi, [ecx - 1]
test edi, edi
not dl
mov dword [esp + 0x74], edi
jl 0x1003ae0c
mov ebp, dword [esp + 0x64]
mov ecx, edi
mov ebx, 0x80
and ecx, 7
sar ebx, cl
mov ecx, edi
sar ecx, 3
mov cl, byte [ecx + esi]
test cl, bl
jne 0x1003ae01
and byte [eax], dl
mov ebx, dword [ebp + 0x9c]
add eax, ebx
dec edi
jns 0x1003ade7
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov ebp, dword [esp + 0x14]
mov eax, dword [edx + 0x80]
inc ebp
mov dword [esp + 0x14], ebp
mov edx, dword [eax + ecx*4]
mov edi, dword [eax + ecx*4 + 4]
inc ecx
cmp edi, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x68], ecx
jne 0x1003aec3
jmp 0x1003ae41
mov ecx, dword [esp + 0x68]
cmp ecx, dword [esp + 0x6c]
jae 0x1003aebf
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.10032ac0
mov edx, ebp
mov ecx, ebp
mov edi, dword [esp + 0x74]
and ecx, 7
shr edx, 3
add eax, edx
mov edx, 0x80
sar edx, cl
test edi, edi
not dl
jl 0x1003ae9a
mov ecx, edi
mov ebx, 0x80
and ecx, 7
sar ebx, cl
mov ecx, edi
sar ecx, 3
mov cl, byte [ecx + esi]
test cl, bl
jne 0x1003ae8b
and byte [eax], dl
mov ecx, dword [esp + 0x64]
mov ebx, dword [ecx + 0x9c]
add eax, ebx
dec edi
jns 0x1003ae71
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
inc eax
inc ebp
mov ecx, dword [edx + 0x80]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x68], eax
cmp dword [ecx + eax*4], edx
je 0x1003ae3d
mov dword [esp + 0x14], ebp
mov ecx, eax
jmp 0x1003aec3
mov dword [esp + 0x14], ebp
cmp ecx, dword [esp + 0x6c]
jb 0x1003ab9a
jmp 0x1003ab1a
mov eax, dword [edi + 0x68]
mov edx, dword [edi + 0x60]
sub eax, edx
sub ebp, ebx
push eax
push ebp
push 0xfffff7bf
push 0xcb7
push str.C:_accusoftgear_sourceDISPLAYDISPBAND.C
call fcn.10046940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x18