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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffefc
mov dword [esp], eax
mov eax, dword [esp]
cmp dword [eax + 0x40c], 0
jne 0x6eb916
mov eax, dword [esp]
mov ebx, dword [eax + 0x3a0]
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x48]
call sym.StartupControl.exe__Sgraphutils_CreateBmp32_qqrxixi
mov edx, dword [esp]
mov dword [edx + 0x40c], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x3a0]
mov edx, dword [eax + 0x48]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x40c]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp]
mov eax, dword [eax + 0x40c]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x7bf7ec]
call sym.StartupControl.exe__Salphagraph_SwapRedBlue_qqrx15Graphics_TColor
mov dword [esp + 0x50], eax
fild dword [esp + 0x10]
fdivr dword [0x6ebfc8]
fstp qword [esp + 0x18]
wait
movzx ebx, byte [esp + 0x52]
movzx eax, bl
movzx edx, byte [esp + 0x51]
add eax, edx
movzx edx, byte [esp + 0x50]
add eax, edx
mov ecx, 3
xor edx, edx
div ecx
mov dword [esp + 0x100], eax
fild dword [esp + 0x100]
fmul qword [esp + 0x18]
call fcn.004c0080
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
sub eax, 0xff
sar eax, 1
jns 0x6eb9b8
adc eax, 0
add dword [esp + 8], eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x406fe000
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x406fe000
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x406fe000
cmp dword [esp + 4], 0
jne 0x6eba19
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
jmp 0x6eba86
movzx eax, bl
mov edx, 0xff
sub edx, eax
mov dword [esp + 0x100], edx
fild dword [esp + 0x100]
fild dword [esp + 4]
fdivp st(1)
fstp qword [esp + 0x38]
wait
movzx eax, byte [esp + 0x51]
mov edx, 0xff
sub edx, eax
mov dword [esp + 0x100], edx
fild dword [esp + 0x100]
fild dword [esp + 4]
fdivp st(1)
fstp qword [esp + 0x40]
wait
movzx eax, byte [esp + 0x50]
mov edx, 0xff
sub edx, eax
mov dword [esp + 0x100], edx
fild dword [esp + 0x100]
fild dword [esp + 4]
fdivp st(1)
fstp qword [esp + 0x48]
wait
xor ebp, ebp
cmp ebp, dword [esp + 4]
jge 0x6ebbe3
fld qword [esp + 0x20]
fsub qword [esp + 0x38]
fstp qword [esp + 0x20]
wait
fld qword [esp + 0x28]
fsub qword [esp + 0x40]
fstp qword [esp + 0x28]
wait
fld qword [esp + 0x30]
fsub qword [esp + 0x48]
fstp qword [esp + 0x30]
wait
fld qword [esp + 0x20]
call fcn.004c0080
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
cmp dword [esp + 0x5c], 0
jne 0x6ebada
cmp dword [esp + 0x58], 0
jbe 0x6ebaee
jmp 0x6ebadc
jle 0x6ebaee
mov eax, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x64], eax
jmp 0x6ebafe
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov eax, dword [esp + 0x60]
mov byte [esp + 0x52], al
fld qword [esp + 0x28]
call fcn.004c0080
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
cmp dword [esp + 0x6c], 0
jne 0x6ebb27
cmp dword [esp + 0x68], 0
jbe 0x6ebb3b
jmp 0x6ebb29
jle 0x6ebb3b
mov eax, dword [esp + 0x68]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
jmp 0x6ebb4b
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov eax, dword [esp + 0x70]
mov byte [esp + 0x51], al
fld qword [esp + 0x30]
call fcn.004c0080
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
cmp dword [esp + 0x7c], 0
jne 0x6ebb74
cmp dword [esp + 0x78], 0
jbe 0x6ebb8e
jmp 0x6ebb76
jle 0x6ebb8e
mov eax, dword [esp + 0x78]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x84], eax
jmp 0x6ebba4
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x80]
mov byte [esp + 0x50], al
mov eax, dword [esp]
mov eax, dword [eax + 0x40c]
mov edx, ebp
call fcn.00502edc
mov edi, eax
mov ebx, dword [esp + 0xc]
dec ebx
test ebx, ebx
jl 0x6ebbd8
inc ebx
xor esi, esi
mov eax, dword [esp + 0x50]
mov dword [edi + esi*4], eax
inc esi
dec ebx
jne 0x6ebbcd
inc ebp
cmp ebp, dword [esp + 4]
jl 0x6eba92
cmp dword [esp + 8], 0
jne 0x6ebc0a
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
jmp 0x6ebc64
movzx eax, byte [esp + 0x52]
mov dword [esp + 0x100], eax
fild dword [esp + 0x100]
fild dword [esp + 8]
fdivp st(1)
fstp qword [esp + 0x38]
wait
movzx eax, byte [esp + 0x51]
mov dword [esp + 0x100], eax
fild dword [esp + 0x100]
fild dword [esp + 8]
fdivp st(1)
fstp qword [esp + 0x40]
wait
movzx eax, byte [esp + 0x50]
mov dword [esp + 0x100], eax
fild dword [esp + 0x100]
fild dword [esp + 8]
fdivp st(1)
fstp qword [esp + 0x48]
wait
dec dword [esp + 0xc]
cmp ebp, dword [esp + 0x10]
jge 0x6ebfba
fld qword [esp + 0x20]
fsub qword [esp + 0x38]
fcomp dword [0x6ebfcc]
wait
fnstsw ax
sahf
jae 0x6ebca0
xor eax, eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov word [esp + 0x90], ax
jmp 0x6ebcb0
fld qword [esp + 0x20]
fsub qword [esp + 0x38]
fstp xword [esp + 0x88]
wait
fld xword [esp + 0x88]
fstp qword [esp + 0x20]
wait
fld qword [esp + 0x28]
fsub qword [esp + 0x40]
fcomp dword [0x6ebfcc]
wait
fnstsw ax
sahf
jae 0x6ebcea
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov word [esp + 0xa0], ax
jmp 0x6ebcfa
fld qword [esp + 0x28]
fsub qword [esp + 0x40]
fstp xword [esp + 0x98]
wait
fld xword [esp + 0x98]
fstp qword [esp + 0x28]
wait
fld qword [esp + 0x30]
fsub qword [esp + 0x48]
fcomp dword [0x6ebfcc]
wait
fnstsw ax
sahf
jae 0x6ebd34
xor eax, eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov word [esp + 0xb0], ax
jmp 0x6ebd44
fld qword [esp + 0x30]
fsub qword [esp + 0x48]
fstp xword [esp + 0xa8]
wait
fld xword [esp + 0xa8]
fstp qword [esp + 0x30]
wait
fld qword [esp + 0x20]
call fcn.004c0080
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edx
cmp dword [esp + 0xbc], 0
jne 0x6ebd80
cmp dword [esp + 0xb8], 0xff
jae 0x6ebda0
jmp 0x6ebd82
jge 0x6ebda0
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc4], eax
jmp 0x6ebdb6
mov dword [esp + 0xc0], 0xff
mov dword [esp + 0xc4], 0
cmp dword [esp + 0xc4], 0
jne 0x6ebdcc
cmp dword [esp + 0xc0], 0
jbe 0x6ebdec
jmp 0x6ebdce
jle 0x6ebdec
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xcc], eax
jmp 0x6ebe02
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x52], al
fld qword [esp + 0x28]
call fcn.004c0080
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edx
cmp dword [esp + 0xd4], 0
jne 0x6ebe3d
cmp dword [esp + 0xd0], 0xff
jae 0x6ebe5d
jmp 0x6ebe3f
jge 0x6ebe5d
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xdc], eax
jmp 0x6ebe73
mov dword [esp + 0xd8], 0xff
mov dword [esp + 0xdc], 0
cmp dword [esp + 0xdc], 0
jne 0x6ebe89
cmp dword [esp + 0xd8], 0
jbe 0x6ebea9
jmp 0x6ebe8b
jle 0x6ebea9
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0xe4], eax
jmp 0x6ebebf
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov eax, dword [esp + 0xe0]
mov byte [esp + 0x51], al
fld qword [esp + 0x30]
call fcn.004c0080
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], edx
cmp dword [esp + 0xec], 0
jne 0x6ebefa
cmp dword [esp + 0xe8], 0xff
jae 0x6ebf1a
jmp 0x6ebefc
jge 0x6ebf1a
mov eax, dword [esp + 0xe8]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0xf4], eax
jmp 0x6ebf30
mov dword [esp + 0xf0], 0xff
mov dword [esp + 0xf4], 0
cmp dword [esp + 0xf4], 0
jne 0x6ebf46
cmp dword [esp + 0xf0], 0
jbe 0x6ebf66
jmp 0x6ebf48
jle 0x6ebf66
mov eax, dword [esp + 0xf0]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0xfc], eax
jmp 0x6ebf7c
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov eax, dword [esp + 0xf8]
mov byte [esp + 0x50], al
mov eax, dword [esp]
mov eax, dword [eax + 0x40c]
mov edx, ebp
call fcn.00502edc
mov edi, eax
mov ebx, dword [esp + 0xc]
test ebx, ebx
jl 0x6ebfaf
inc ebx
xor esi, esi
mov eax, dword [esp + 0x50]
mov dword [edi + esi*4], eax
inc esi
dec ebx
jne 0x6ebfa4
inc ebp
cmp ebp, dword [esp + 0x10]
jl 0x6ebc72
add esp, 0x104
pop ebp
pop edi
pop esi
pop ebx
ret