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

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ecx, dword [eax]
push esi
mov dword [esp + 0x38], ecx
push edi
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x48], edx
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx]
mov esi, dword [eax + 4]
push ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x3c], eax
call sym.GEAR32PO.OCX_GPb_height_get
mov edi, eax
mov eax, dword [ebx + 0x68]
mov edx, dword [ebx + 0x70]
sub edi, esi
mov esi, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x6c]
sub eax, esi
mov esi, dword [ebx + 0x74]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x78]
sub eax, edx
mov edx, dword [ebx + 0x10]
dec edi
sub esi, ecx
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], eax
inc esi
call fcn.10032ac0
mov ebp, eax
mov eax, dword [ebx + 0x6c]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x60], eax
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x14], eax
add eax, esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x10037906
mov edx, dword [ebx + 0x80]
lea ecx, [esp + 0x28]
push ecx
mov eax, dword [edx + esi*4]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x24], eax
call fcn.100d3780
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], esi
ja 0x10037b8c
cmp esi, eax
jae 0x10037e7b
jmp 0x1003792c
mov edi, dword [esp + 0x30]
mov ecx, dword [ebx + 0x80]
mov edx, dword [esp + 0x64]
mov eax, dword [ebx]
sub edi, dword [ecx + edx*4]
push edi
push eax
call sym.GEAR32PO.OCX_GPb_image_run_row_get
lea edi, [eax + 2]
xor ecx, ecx
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x10]
mov cx, word [edi]
mov dword [esp + 0x54], edi
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x14]
sub ecx, esi
cmp ecx, edx
jge 0x10037980
mov ecx, dword [esp + 0x60]
add edi, 2
xor edx, edx
mov dx, word [edi]
mov ecx, dword [ecx + edx*4]
mov edx, dword [esp + 0x14]
sub ecx, esi
cmp ecx, edx
jl 0x10037963
mov dword [esp + 0x54], edi
mov ecx, edi
sub ecx, eax
sub ecx, 2
test cl, 2
je 0x10037a0a
mov ecx, dword [esp + 0x60]
xor eax, eax
mov ax, word [edi]
mov eax, dword [ecx + eax*4]
lea ecx, [esi - 1]
sub eax, ecx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jl 0x100379a7
mov eax, ecx
sub eax, edx
mov ecx, eax
test ecx, ecx
jg 0x100379b4
mov ecx, 1
cmp ecx, 8
jg 0x100379cb
mov al, byte [ebp]
dec ecx
mov edx, 0xff
sar edx, cl
and al, dl
mov byte [ebp], al
jmp 0x10037a03
cmp ecx, 0x10
mov byte [ebp], 0
mov eax, 1
mov esi, 8
jle 0x100379f2
mov edx, 0x10
mov byte [eax + ebp], 0
add edx, 8
inc eax
add esi, 8
cmp edx, ecx
jl 0x100379e3
sub ecx, esi
mov edx, 0xff
dec ecx
mov esi, dword [esp + 0x10]
sar edx, cl
and byte [eax + ebp], dl
add edi, 2
mov dword [esp + 0x54], edi
mov ecx, dword [esp + 0x60]
xor eax, eax
mov ax, word [edi]
mov eax, dword [ecx + eax*4]
lea ecx, [esi - 1]
mov esi, dword [esp + 0x18]
mov edx, eax
sub edx, ecx
cmp edx, esi
jge 0x10037b02
jmp 0x10037a2f
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x60]
xor edx, edx
mov dx, word [edi + 2]
mov edx, dword [esi + edx*4]
sub edx, ecx
mov ecx, dword [esp + 0x18]
cmp edx, ecx
jl 0x10037a48
mov edx, ecx
mov ecx, dword [esp + 0x14]
sub edx, ecx
test edx, edx
mov dword [esp + 0x1c], edx
jg 0x10037a5e
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x10]
or dl, 0xff
sub eax, esi
mov esi, 8
sub eax, ecx
mov edi, eax
mov ecx, edi
and ecx, 7
sub esi, ecx
mov ecx, esi
shl dl, cl
lea ecx, [edi + esi]
sar eax, 3
cmp ecx, dword [esp + 0x1c]
jl 0x10037aa9
mov ecx, dword [esp + 0x1c]
mov ebx, 0xff
sub ecx, esi
sub ecx, edi
add ecx, 7
sar ebx, cl
mov cl, byte [eax + ebp]
or dl, bl
mov ebx, dword [esp + 0x50]
and cl, dl
mov byte [eax + ebp], cl
jmp 0x10037ad6
and byte [eax + ebp], dl
mov edx, ecx
mov ecx, dword [esp + 0x1c]
inc eax
lea esi, [edx + 8]
cmp esi, ecx
jge 0x10037ac9
mov byte [eax + ebp], 0
add esi, 8
inc eax
add edx, 8
cmp esi, ecx
jl 0x10037aba
sub ecx, edx
mov edx, 0xff
dec ecx
sar edx, cl
and byte [eax + ebp], dl
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
add eax, 4
xor edx, edx
mov dword [esp + 0x54], eax
mov esi, dword [esp + 0x18]
mov dx, word [eax]
mov eax, dword [esp + 0x60]
dec ecx
mov eax, dword [eax + edx*4]
mov edx, eax
sub edx, ecx
cmp edx, esi
jl 0x10037a2b
mov ecx, dword [ebx + 0x9c]
mov eax, dword [ebx + 0x34]
add ebp, ecx
test eax, eax
je 0x10037b43
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10037b43
mov edx, dword [ebx + 0x80]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x30]
mov esi, dword [edx + ecx*4]
mov edx, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x60]
sub edx, ecx
mov ecx, edi
push edx
mov edx, dword [esp + 0x2c]
sub ecx, esi
push ecx
push edx
call eax
test eax, eax
je 0x10037b62
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x64], eax
jb 0x10037928
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x18
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x60]
sub eax, ecx
sub edi, esi
push eax
push edi
push 0xfffff7bf
push 0x34b
push str.C:_accusoftgear_sourceDISPLAYDISPBAND.C
call fcn.10046940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x18
cmp esi, eax
jae 0x10037e7b
jmp 0x10037b9a
mov edi, dword [esp + 0x30]
mov ecx, dword [ebx + 0x80]
mov edx, dword [esp + 0x64]
mov eax, dword [ebx]
sub edi, dword [ecx + edx*4]
push edi
push eax
call sym.GEAR32PO.OCX_GPb_image_run_row_get
xor ecx, ecx
mov cx, word [eax]
mov esi, dword [esp + 0x60]
shr ecx, 1
mov edi, dword [esp + 0x14]
lea edx, [eax + ecx*2]
xor ecx, ecx
mov cx, word [eax + 2]
mov dword [esp + 0x20], edx
lea edx, [eax + 2]
mov esi, dword [esi + ecx*4]
mov ecx, dword [esp + 0x10]
sub esi, ecx
mov dword [esp + 0x54], edx
cmp esi, edi
jge 0x10037bfd
mov edi, dword [esp + 0x60]
add edx, 2
xor esi, esi
mov si, word [edx]
mov esi, dword [edi + esi*4]
mov edi, dword [esp + 0x14]
sub esi, ecx
cmp esi, edi
jl 0x10037be0
mov dword [esp + 0x54], edx
mov ecx, edx
sub ecx, eax
sub ecx, 2
test cl, 2
je 0x10037c82
mov ecx, dword [esp + 0x60]
xor eax, eax
mov ax, word [edx]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x10]
dec ecx
sub eax, ecx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jl 0x10037c26
mov eax, ecx
sub eax, dword [esp + 0x14]
mov ecx, eax
test ecx, ecx
jg 0x10037c35
mov ecx, 1
cmp ecx, 8
jg 0x10037c47
dec ecx
mov eax, 0xff
sar eax, cl
and byte [ebp], al
jmp 0x10037c7b
cmp ecx, 0x10
mov byte [ebp], 0
mov esi, 1
mov edi, 8
jle 0x10037c6e
mov eax, 0x10
mov byte [esi + ebp], 0
add eax, 8
inc esi
add edi, 8
cmp eax, ecx
jl 0x10037c5f
sub ecx, edi
mov eax, 0xff
dec ecx
sar eax, cl
and byte [esi + ebp], al
add edx, 2
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x20]
cmp edx, eax
jae 0x10037d9a
mov esi, dword [esp + 0x60]
xor ecx, ecx
mov cx, word [edx]
mov edi, dword [esi + ecx*4]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
dec ecx
sub edi, ecx
cmp edi, esi
jge 0x10037d9a
jmp 0x10037cb7
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
lea edi, [edx + 2]
cmp edi, eax
jb 0x10037cc5
lea edx, [eax - 2]
mov dword [esp + 0x54], edx
mov edi, dword [esp + 0x60]
xor eax, eax
mov ax, word [edx + 2]
mov eax, dword [edi + eax*4]
sub eax, ecx
cmp eax, esi
jl 0x10037cda
mov eax, esi
sub eax, dword [esp + 0x14]
mov ebx, eax
test ebx, ebx
jg 0x10037ce9
mov ebx, 1
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [edx]
mov edx, dword [esp + 0x60]
mov esi, dword [edx + ecx*4]
mov edx, dword [esp + 0x14]
sub esi, edi
mov edi, 8
sub esi, edx
or dl, 0xff
mov ecx, esi
mov eax, esi
and ecx, 7
sub edi, ecx
mov ecx, edi
shl dl, cl
lea ecx, [esi + edi]
sar eax, 3
cmp ecx, ebx
jl 0x10037d34
mov ecx, ebx
mov ebx, 0xff
sub ecx, edi
sub ecx, esi
add ecx, 7
sar ebx, cl
or dl, bl
jmp 0x10037d5c
and byte [eax + ebp], dl
mov edx, ecx
inc eax
lea ecx, [edx + 8]
cmp ecx, ebx
jge 0x10037d50
mov byte [eax + ebp], 0
add ecx, 8
inc eax
add edx, 8
cmp ecx, ebx
jl 0x10037d41
mov ecx, ebx
sub ecx, edx
mov edx, 0xff
dec ecx
sar edx, cl
mov cl, byte [eax + ebp]
and cl, dl
mov edx, dword [esp + 0x54]
mov byte [eax + ebp], cl
mov eax, dword [esp + 0x20]
add edx, 4
cmp edx, eax
mov dword [esp + 0x54], edx
jae 0x10037d96
mov ecx, dword [esp + 0x60]
xor eax, eax
mov ax, word [edx]
mov esi, dword [esp + 0x18]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x10]
dec ecx
sub eax, ecx
cmp eax, esi
jl 0x10037caf
mov ebx, dword [esp + 0x50]
mov ecx, dword [ebx + 0x9c]
mov eax, dword [ebx + 0x34]
add ebp, ecx
test eax, eax
je 0x10037de9
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10037de9
mov edx, dword [ebx + 0x80]
mov esi, dword [esp + 0x64]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x1c]
cmp edx, eax
je 0x10037ded
mov edx, dword [ebx + 0x68]
mov edi, dword [ebx + 0x60]
sub edx, edi
mov edi, dword [esp + 0x30]
push edx
mov edx, edi
mov dword [esp + 0x20], eax
sub edx, eax
mov eax, dword [esp + 0x2c]
push edx
push eax
call ecx
test eax, eax
je 0x10037e57
jmp 0x10037ded
mov esi, dword [esp + 0x64]
mov ecx, dword [ebx + 0x80]
inc esi
mov dword [esp + 0x64], esi
mov eax, dword [ecx + esi*4 - 4]
mov edx, dword [ecx + esi*4]
cmp edx, eax
jne 0x10037e43
cmp esi, dword [esp + 0x58]
jae 0x10037e43
mov ecx, dword [ebx + 0x9c]
mov esi, ebp
sub esi, ecx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x9c]
mov edx, dword [ebx + 0x80]
add ebp, ecx
mov ecx, dword [esp + 0x64]
inc ecx
mov dword [esp + 0x64], ecx
mov esi, dword [edx + ecx*4]
cmp esi, eax
mov esi, ecx
je 0x10037e03
cmp esi, dword [esp + 0x58]
jb 0x10037b96
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x18
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x60]
mov ebx, dword [esp + 0x1c]
sub eax, ecx
sub edi, ebx
push eax
push edi
push 0xfffff7bf
push 0x3b3
push str.C:_accusoftgear_sourceDISPLAYDISPBAND.C
call fcn.10046940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x18