Function at 0x437df0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebp, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
mov esi, dword [esp + 0xb8]
mov edi, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
call fcn.004372f0
mov edx, dword [esp + 0xc4]
mov dword [esp + 4], str..png
mov dword [esp + 0x2c], eax
mov dword [esp], edx
call fcn.00420f50
test al, al
je 0x437ed0
lea eax, [ebx*4]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
call fcn.00435180
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
test ebx, ebx
je 0x437f40
mov eax, dword [esp + 0xc4]
mov dword [esp + 4], str.Image_exported_successfully:__s
mov dword [esp], 3
mov dword [esp + 8], eax
call fcn.0044b530
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xc4]
mov dword [esp + 4], str..ktx
mov dword [esp], eax
call fcn.00420f50
test al, al
je 0x437f60
mov eax, dword [esp + 0xbc]
mov dword [esp + 4], 0x46dae3
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
mov dword [esp + 0x30], eax
jne 0x437f90
mov eax, dword [esp + 0xc4]
mov dword [esp + 4], str.__s__KTX_image_file_could_not_be_created
mov dword [esp], 4
mov dword [esp + 8], eax
call fcn.0044b530
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 4], str.Image_could_not_be_exported.
mov dword [esp], 4
call fcn.0044b530
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xc4]
mov dword [esp + 4], str..raw
mov dword [esp], eax
call fcn.00420f50
test al, al
jne 0x438160
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x437f40
lea edx, [esp + 0x50]
lea eax, [esp + 0x44]
mov dword [esp + 8], 0xc
mov dword [esp + 0x44], 0x58544bab
mov dword [esp + 0x48], 0xbb313120
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], 0xa1a0a0d
call sub.msvcrt.dll_strncpy
mov eax, dword [esp + 0x34]
mov dword [esp], edi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], 0
mov dword [esp + 0x88], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 8], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x84], 1
mov dword [esp + 0x8c], 0
mov dword [esp + 4], eax
call fcn.0040f060
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x38]
cmp eax, 0xffffffff
mov dword [esp + 0x70], eax
je 0x4381b2
mov eax, dword [esp + 0x30]
mov dword [esp], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x34]
test edx, edx
jle 0x438144
lea eax, [edi - 1]
xor edx, edx
mov dword [esp + 0x3c], ebp
xor edi, edi
mov ebp, edx
mov dword [esp + 0x38], eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [esp + 0x38]
xor eax, eax
cmp edx, 0x14
ja 0x4380d3
mov ecx, ebx
imul ecx, esi
imul ecx, dword [edx*4 + 0x46ea60]
lea eax, [ecx + 7]
test ecx, ecx
cmovns eax, ecx
sar eax, 3
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x40]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
add ebp, 1
mov dword [esp], edx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
add eax, edi
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov ecx, ebx
add edi, dword [esp + 0x40]
shr ecx, 0x1f
add ebx, ecx
mov ecx, esi
shr ecx, 0x1f
sar ebx, 1
add esi, ecx
sar esi, 1
cmp ebp, dword [esp + 0x34]
jne 0x4380b0
mov ebx, eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
jmp 0x437e88
mov eax, dword [esp + 0xc4]
mov dword [esp + 4], 0x46dae3
sub edi, 1
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edx, eax
xor eax, eax
cmp edi, 0x14
jbe 0x4381e3
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebp
mov dword [esp + 0x30], edx
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x30]
mov ebx, eax
mov dword [esp], edx
call sub.msvcrt.dll_fclose
jmp 0x437e88
mov dword [esp + 4], str.Image_format_not_supported_for_KTX_export.
mov dword [esp], 4
call fcn.0044b530
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x437f40
imul ebx, esi
imul ebx, dword [edi*4 + 0x46ea60]
lea eax, [ebx + 7]
test ebx, ebx
cmovns eax, ebx
sar eax, 3
jmp 0x438183