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

Disassembly:
push ebp
push edi
mov edi, 0x4d42
push esi
push ebx
sub esp, 0x60
mov ebx, dword [esp + 0x78]
mov word [esp + 0x32], di
test ebx, ebx
je 0x6ca11499
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 4]
movzx edx, byte [eax + 8]
cmp dl, 7
ja 0x6ca10d78
mov esi, dword [eax + 4]
test esi, esi
je 0x6ca11230
mov dword [esp + 4], edx
mov dword [esp], str._d_bpp_BMP_files_not_supported
call fcn.6c942590
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x6ca11200
call fcn.6c942610
mov dword [esp + 4], 0x6ca91a29
mov dword [esp], eax
call fcn.6c9d8d60
neg eax
sbb eax, eax
add esp, 0x60
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [eax + 0x18]
test edi, edi
jne 0x6ca10d90
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 0x34]
test byte [ecx + 0x45], 1
je 0x6ca11270
lea esi, [esp + 0x34]
mov dword [esp + 4], 0x16362004
mov dword [esp], esi
call fcn.6ca15830
mov eax, dword [esp + 0x74]
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.6ca1cb10
mov ebp, eax
test eax, eax
je 0x6ca113f0
mov dword [esp + 4], 0
mov esi, 1
mov dword [esp], str.SDL_BMP_SAVE_LEGACY_FORMAT
call fcn.6c942a20
mov edi, eax
mov dword [esp], ebp
call fcn.6ca1b000
test eax, eax
jne 0x6ca10d48
mov eax, dword [ebp + 4]
movzx eax, byte [eax + 9]
imul eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
call fcn.6c9771a0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
call fcn.6c942630
lea eax, [esp + 0x32]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.6c9771e0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c977420
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c977420
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov dword [esp + 0x14], 0
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
movzx eax, byte [edx + 8]
mov edx, dword [edx + 4]
mov byte [esp + 0x20], al
mov eax, dword [ebp + 0x10]
imul eax, ecx
mov dword [esp + 0x28], eax
test edx, edx
je 0x6ca10ea9
mov eax, dword [edx]
mov dword [esp + 0x14], eax
movzx edx, byte [esp + 0x20]
test edi, edi
jne 0x6ca11338
mov eax, esi
test al, al
je 0x6ca11338
mov dword [esp + 4], 0x6c
mov esi, 9
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ecx
call fcn.6c9774a0
mov eax, dword [esp + 0x24]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.6c9774a0
mov ecx, dword [esp + 0x20]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.6c9774a0
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.6c977420
mov edx, dword [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.6c977420
mov dword [esp + 4], 3
mov dword [esp], ebx
call fcn.6c9774a0
mov eax, dword [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.6c9774a0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
mov eax, dword [esp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.6c9774a0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
mov dword [esp + 4], 0xff0000
mov dword [esp], ebx
call fcn.6c9774a0
mov dword [esp + 4], 0xff00
mov dword [esp], ebx
call fcn.6c9774a0
mov dword [esp + 4], 0xff
mov dword [esp], ebx
call fcn.6c9774a0
mov dword [esp + 4], 0xff000000
mov dword [esp], ebx
call fcn.6c9774a0
mov dword [esp + 4], 0x57696e20
mov dword [esp], ebx
call fcn.6c9774a0
lea esi, [esi]
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
sub esi, 1
jne 0x6ca10fd0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
mov eax, dword [ebp + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x6ca110cb
mov esi, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
jle 0x6ca110cb
xor edi, edi
mov dword [esp + 0x14], ebp
add esi, 2
mov ebp, edi
mov edi, eax
lea esi, [esi]
mov dword [esp + 4], esi
add ebp, 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp], ebx
call fcn.6c9771e0
lea eax, [esi - 1]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.6c9771e0
lea eax, [esi - 2]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.6c9771e0
lea eax, [esi + 1]
mov dword [esp], ebx
add esi, 4
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call fcn.6c9771e0
cmp edi, ebp
jne 0x6ca11040
mov ebp, dword [esp + 0x14]
mov dword [esp], ebx
call fcn.6c9771a0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], 0
sub eax, edx
mov dword [esp + 0x20], edx
mov esi, eax
mov eax, edx
mov edx, ecx
add eax, 0xa
adc edx, 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.6c977190
test edx, edx
js 0x6ca11440
mov dword [esp + 4], esi
xor edi, edi
mov dword [esp], ebx
call fcn.6c9774a0
add esi, dword [esp + 0x18]
adc edi, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call fcn.6c977190
test edx, edx
js 0x6ca11488
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0x14]
mov edi, dword [esp + 0x10]
imul esi, eax
add esi, ecx
test edi, 3
je 0x6ca11171
mov edx, edi
sar edx, 0x1f
shr edx, 0x1e
add edi, edx
and edi, 3
sub edx, edi
add edx, 4
cmp ecx, esi
jae 0x6ca112a0
mov dword [esp + 0x14], ebp
mov edi, edx
jmp 0x6ca11198
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x14], esi
jae 0x6ca113e0
mov eax, dword [eax + 0x10]
mov ebp, dword [esp + 0x10]
sub esi, eax
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp + 0xc], ebp
mov dword [esp], ebx
call fcn.6c9771e0
cmp ebp, eax
jne 0x6ca11290
test edi, edi
je 0x6ca11188
mov byte [esp + 0x34], 0
xor ebp, ebp
lea esi, [esi]
lea eax, [esp + 0x34]
mov dword [esp + 0xc], 1
add ebp, 1
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.6c9771e0
cmp edi, ebp
jne 0x6ca111d0
jmp 0x6ca11188
mov dword [esp], ebx
call fcn.6c9771f0
jmp 0x6ca10d54
cmp dl, 0x18
jne 0x6ca11230
cmp dword [eax + 0xc], 0xff0000
jne 0x6ca11230
cmp dword [eax + 0x10], 0xff00
jne 0x6ca11230
cmp dword [eax + 0x14], 0xff
je 0x6ca11280
lea esi, [esp + 0x34]
mov dword [esp + 4], 0x17401803
mov dword [esp], esi
call fcn.6ca15830
mov eax, dword [esp + 0x74]
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.6ca1cb10
mov ebp, eax
test eax, eax
je 0x6ca11420
xor esi, esi
xor edi, edi
jmp 0x6ca10de1
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x6ca11210
cmp dl, 8
jne 0x6ca10d38
mov ebp, dword [esp + 0x74]
xor esi, esi
jmp 0x6ca10de1
mov dword [esp], 2
mov ebp, dword [esp + 0x14]
call fcn.6c942640
mov dword [esp], ebx
call fcn.6c9771a0
sub eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp], ebx
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], 0
add eax, 2
adc edx, 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.6c977190
test edx, edx
js 0x6ca11470
mov dword [esp + 4], esi
xor edi, edi
mov dword [esp], ebx
call fcn.6c9774a0
add esi, dword [esp + 0x18]
adc edi, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call fcn.6c977190
test edx, edx
js 0x6ca11458
mov dword [esp], ebp
call fcn.6ca1b050
cmp ebp, dword [esp + 0x74]
je 0x6ca10d48
mov dword [esp], ebp
call fcn.6ca1b850
jmp 0x6ca10d48
mov dword [esp + 4], 0x28
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ecx
call fcn.6c9774a0
mov eax, dword [esp + 0x24]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.6c9774a0
mov ecx, dword [esp + 0x20]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.6c9774a0
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.6c977420
mov edx, dword [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.6c977420
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
mov eax, dword [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.6c9774a0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.6c9774a0
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
jmp 0x6ca10ffd
mov ebp, eax
jmp 0x6ca112a0
movzx eax, byte [esp + 0x3c]
mov dword [esp], str.Couldnt_convert_image_to__d_bpp
mov dword [esp + 4], eax
call fcn.6c942590
mov dword [esp + 4], 0
mov dword [esp], str.SDL_BMP_SAVE_LEGACY_FORMAT
call fcn.6c942a20
jmp 0x6ca10d48
movzx eax, byte [esp + 0x3c]
mov dword [esp], str.Couldnt_convert_image_to__d_bpp
mov dword [esp + 4], eax
call fcn.6c942590
jmp 0x6ca10d48
mov dword [esp], 3
call fcn.6c942640
jmp 0x6ca1110d
mov dword [esp], 3
call fcn.6c942640
jmp 0x6ca11312
mov dword [esp], 3
call fcn.6c942640
jmp 0x6ca112dc
mov dword [esp], 3
call fcn.6c942640
jmp 0x6ca11143
mov eax, 0xffffffff
jmp 0x6ca10d6d