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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x759ff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.005df300
xor ebx, ebx
cmp eax, ebx
jne 0x6ec1a7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x6ebf35
mov ecx, dword [esi + 0x10]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
call fcn.006e0fe0
add esp, 0xc
mov eax, dword [eax]
mov edx, dword [edi]
push eax
push str.image
mov ecx, edi
mov dword [esp + 0x44], ebx
call dword [edx + 0x84]
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00412de0
cmp dword [esi + 0x1c], ebx
jne 0x6ebf3f
cmp dword [esi + 0x20], ebx
je 0x6ebf62
mov ecx, dword [esi + 0x1c]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x20], esp
mov dword [eax + 4], edx
mov eax, dword [edi]
push str.origin
mov ecx, edi
call dword [eax + 0xf0]
mov eax, dword [esi + 0x34]
cmp eax, 2
jne 0x6ebf83
mov edx, dword [edi]
push str.fire
push str.drawmode
mov ecx, edi
call dword [edx + 0x84]
jmp 0x6ec03e
cmp eax, 3
jne 0x6ebf92
push str.smoke
jmp 0x6ec02f
cmp eax, 1
jne 0x6ebfb0
mov edx, dword [edi]
push str.clouds
push str.drawmode
mov ecx, edi
call dword [edx + 0x84]
jmp 0x6ec03e
cmp eax, 7
jne 0x6ebfbc
push str.selection
jmp 0x6ec02f
cmp eax, 5
jne 0x6ebfd7
mov edx, dword [edi]
push str.transp
push str.drawmode
mov ecx, edi
call dword [edx + 0x84]
jmp 0x6ec03e
cmp eax, 6
jne 0x6ebfe3
push str.multiply
jmp 0x6ec02f
cmp eax, 9
jne 0x6ebffe
mov edx, dword [edi]
push str.translu
push str.drawmode
mov ecx, edi
call dword [edx + 0x84]
jmp 0x6ec03e
cmp eax, 0xa
jne 0x6ec00a
push str.dodge
jmp 0x6ec02f
cmp eax, 0xb
jne 0x6ec025
mov edx, dword [edi]
push str.overlay
push str.drawmode
mov ecx, edi
call dword [edx + 0x84]
jmp 0x6ec03e
cmp eax, 0xc
jne 0x6ec055
push str.srcalpha
mov eax, dword [edi]
mov ecx, edi
push str.drawmode
call dword [eax + 0x84]
mov al, byte [esi + 0x38]
cmp al, bl
je 0x6ec055
mov edx, dword [edi]
push eax
push str.drawmodepercent
mov ecx, edi
call dword [edx + 0x9c]
mov ax, word [esi + 0x24]
cmp ax, bx
je 0x6ec06b
mov edx, dword [edi]
push eax
push str.layer
mov ecx, edi
call dword [edx + 0x78]
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x6ec07f
mov edx, dword [edi]
push eax
push str.width
mov ecx, edi
call dword [edx + 0x74]
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x6ec093
mov edx, dword [edi]
push eax
push 0x7c8d04
mov ecx, edi
call dword [edx + 0x74]
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x6ec0af
movzx ecx, word [esi + 0x40]
mov edx, dword [edi]
shl ecx, 4
push ecx
push eax
push str.boundrects
mov ecx, edi
call dword [edx + 0x58]
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x6ec0c6
mov edx, dword [edi]
push eax
push 0x7ce78c
mov ecx, edi
call dword [edx + 0x84]
mov al, byte [esi + 0x39]
cmp al, bl
je 0x6ec0dd
mov edx, dword [edi]
push eax
push str.colorization
mov ecx, edi
call dword [edx + 0x9c]
mov eax, dword [esi + 0x44]
add esi, 0x44
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x6ec1a3
mov edx, dword [edi]
push 0x8008e4
mov ecx, edi
call dword [edx + 0x24]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
jbe 0x6ec19c
jmp 0x6ec110
lea ecx, [esp + 0x20]
call fcn.00412d40
push ebx
lea ecx, [esp + 0x24]
push 0x8008d4
push ecx
mov dword [esp + 0x48], 1
call fcn.00413950
mov edx, dword [esi]
add esp, 0xc
push ebx
mov ecx, esi
call dword [edx + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x10]
mov eax, dword [eax]
push edx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.006e0fe0
add esp, 0xc
mov eax, dword [eax]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, edi
mov byte [esp + 0x44], 2
call dword [edx + 0x84]
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 1
call fcn.00412de0
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00412de0
mov edx, dword [esi]
mov ecx, esi
add ebx, 1
call dword [edx + 8]
cmp ebx, eax
jb 0x6ec110
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4