Function at 0x437080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 0x800
push dword [ebp + 0xc]
lea ecx, [ebp - 0x50]
call fcn.00438470
xor edx, edx
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x3c], 0
mov bl, 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 1], bl
mov dword [ebp - 0x14], edx
cmp ax, word [0x4abf6e]
jae 0x437289
lea ebx, [ebx]
mov eax, dword [0x4abf48]
movzx ecx, dx
mov esi, dword [eax + ecx*4]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
sub eax, 0
je 0x43712c
dec eax
je 0x437123
dec eax
jne 0x4373f9
lea edx, [eax + 1]
xor al, al
mov byte [ebp - 1], al
jmp 0x437136
xor edx, edx
xor al, al
mov byte [ebp - 1], al
jmp 0x437136
test bl, bl
je 0x437426
xor edx, edx
mov ecx, dword [esi]
mov eax, dword [ebp + edx*4 - 0x28]
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 8], edx
mov edi, dword [ecx]
add eax, edi
cmp eax, ebx
jle 0x43715a
mov eax, dword [ebp + edx*4 - 0x30]
mov dword [ebp + edx*4 - 0x28], 0
mov dword [ebp + edx*4 - 0x40], eax
mov edx, dword [ebp + edx*4 - 0x28]
lea eax, [edi + edx]
cmp eax, ebx
jg 0x4373b6
mov edi, dword [ebp - 8]
mov eax, dword [ecx + 4]
mov ebx, dword [ebp + edi*4 - 0x40]
add eax, ebx
mov dword [ebp - 0x20], ebx
cmp eax, dword [ebp - 0x4c]
jg 0x4373b6
cmp dword [ebp + 8], 0
mov dword [esi + 4], edx
mov dword [esi + 8], ebx
je 0x437229
xor edx, edx
mov dword [ebp - 0x10], edx
cmp dword [ecx + 4], edx
jle 0x437229
mov ecx, ebx
mov dword [ebp - 0xc], ebx
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax], ebx
jle 0x437214
lea esp, [esp]
xor edi, edi
mov eax, dword [ebp - 0x18]
sub eax, 0
je 0x4371ce
dec eax
je 0x4371c7
dec eax
jne 0x437204
cmp edi, 3
je 0x4371d3
jmp 0x437204
cmp edi, 3
jl 0x4371d3
jmp 0x437204
cmp edi, 4
jge 0x437204
mov ecx, dword [esi]
mov eax, dword [ecx]
imul eax, edx
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 8]
add eax, ebx
lea esi, [edi + eax*4]
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x50]
fld dword [edx + esi*4]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add eax, dword [ebp + ecx*4 - 0x28]
add eax, ebx
lea ecx, [edi + eax*4]
mov eax, dword [ebp - 0x48]
fstp dword [eax + ecx*4]
inc edi
cmp edi, 4
jl 0x4371b2
mov eax, dword [esi]
inc ebx
cmp ebx, dword [eax]
jl 0x4371b0
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi]
inc edx
inc ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
cmp edx, dword [eax + 4]
jl 0x4371a4
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x20]
mov edx, dword [esi]
mov eax, dword [ebp + edi*4 - 0x30]
mov ecx, dword [edx + 4]
add ecx, ebx
mov bl, byte [ebp - 1]
cmp eax, ecx
cmovg ecx, eax
mov eax, dword [edx]
add dword [ebp + edi*4 - 0x28], eax
mov eax, dword [ebp + edi*4 - 0x38]
mov dword [ebp + edi*4 - 0x30], ecx
mov ecx, dword [ebp + edi*4 - 0x28]
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp + edi*4 - 0x38], ecx
test bl, bl
je 0x437273
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x14]
movzx eax, word [0x4abf6e]
inc edx
mov dword [ebp - 0x14], edx
cmp edx, eax
jl 0x4370f0
mov esi, 1
xor ecx, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + ecx*4 - 0x30]
cmp esi, eax
jge 0x4372a9
jmp 0x4372a0
add esi, esi
cmp esi, eax
jl 0x4372a0
mov dword [ebp - 0x14], esi
inc ecx
cmp ecx, 2
jl 0x437293
mov edi, 1
xor ecx, ecx
mov eax, dword [ebp + ecx*4 - 0x38]
cmp edi, eax
jge 0x4372c6
mov edi, edi
add edi, edi
cmp edi, eax
jl 0x4372c0
inc ecx
cmp ecx, 2
jl 0x4372b6
cmp dword [ebp + 8], 0
je 0x4373dc
push esi
push edi
lea ecx, [ebp - 0x44]
call fcn.00438470
mov eax, dword [ebp - 0x40]
xor ebx, ebx
test eax, eax
jle 0x43739e
mov edx, dword [ebp - 0x44]
xor esi, esi
test edx, edx
jle 0x437392
lea ebx, [ebx]
mov eax, dword [ebp - 0x48]
mov ecx, ebx
imul ecx, dword [ebp - 0x50]
imul edx, ebx
add ecx, esi
add ecx, ecx
add edx, esi
add edx, edx
fld dword [eax + ecx*8]
mov eax, dword [ebp - 0x3c]
fstp dword [eax + edx*8]
mov ecx, dword [ebp - 0x44]
mov edx, ebx
imul edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
imul ecx, ebx
add edx, esi
add edx, edx
add ecx, esi
add ecx, ecx
fld dword [eax + edx*8 + 4]
mov edx, ebx
mov eax, dword [ebp - 0x3c]
fstp dword [eax + ecx*8 + 4]
imul edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
imul ecx, ebx
add edx, esi
add edx, edx
add ecx, esi
add ecx, ecx
fld dword [eax + edx*8 + 8]
mov edx, ebx
mov eax, dword [ebp - 0x3c]
fstp dword [eax + ecx*8 + 8]
imul edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
imul ecx, ebx
add edx, esi
add edx, edx
add ecx, esi
inc esi
add ecx, ecx
fld dword [eax + edx*8 + 0xc]
mov eax, dword [ebp - 0x3c]
fstp dword [eax + ecx*8 + 0xc]
mov edx, dword [ebp - 0x44]
cmp esi, edx
jl 0x437300
mov eax, dword [ebp - 0x40]
inc ebx
cmp ebx, eax
jl 0x4372f0
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push ebx
call fcn.00438a70
push ebx
test al, al
jne 0x4373c7
push str.Error:_failed_to_save_TGA___s___n
jmp 0x4373cc
lea ecx, [ebp - 0x50]
call fcn.00438710
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Ok:_successfully_saved_TGA___s__n
call fcn.00446d6d
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.00438710
lea ecx, [ebp - 0x50]
mov dword [0x4abfac], esi
mov dword [0x4abfa8], edi
call fcn.00438710
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov eax, esp
mov ecx, 0x4abf5c
mov word [eax], dx
call fcn.00444870
push eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
push dword [eax]
push str._error_when_packing_rgba__bad_sequence__d_encountered_for_frame__s__n
call fcn.00446d6d
add esp, 0xc
push 0xffffffffffffffff
call fcn.00446bf0
push ecx
mov eax, esp
mov ecx, 0x4abf5c
mov word [eax], dx
call fcn.00444870
push eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
push dword [eax]
push str._error_when_packing_rgba__bad_sequence__d_encountered_for_frame__s_after_all_rgba_frames_packed__n
call fcn.00446d6d
add esp, 0xc
push 0xffffffffffffffff
call fcn.00446bf0
int3