Function at 0x437520
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.00446ea0
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
call fcn.00436d10
mov ecx, dword [0x4b7c00]
lea edx, [ebp - 0x1054]
mov esi, dword [ebp - 0x24]
push esi
push 0x1000
mov eax, dword [ecx]
push edx
call dword [eax + 0x5c]
test eax, eax
je 0x437ab1
push ebx
push edi
lea eax, [ebp - 0x1054]
push 0xa
push eax
call fcn.00446570
add esp, 8
test eax, eax
je 0x43757d
mov byte [eax], 0
lea eax, [ebp - 0x1054]
push 0x45a348
push eax
call fcn.004466a0
add esp, 8
test eax, eax
je 0x437598
mov byte [eax], 0
lea edi, [ebp - 0x1054]
mov edi, edi
mov al, byte [edi]
cmp al, 0x20
je 0x4375aa
cmp al, 9
jne 0x4375ad
inc edi
jmp 0x4375a0
cmp byte [edi], 0
je 0x437a8f
push edi
call fcn.00457e53
push edi
call fcn.00435f50
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x45a30c
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00443140
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, 1
jne 0x43762e
mov eax, dword [ebp - 0x14]
push str.loop
push dword [eax]
call fcn.00457c02
add esp, 8
test eax, eax
jne 0x43762b
mov eax, dword [0x4abf40]
test eax, eax
je 0x437a3e
mov byte [eax + 4], 0
jmp 0x437a3e
mov eax, dword [ebp - 8]
cmp eax, 2
jne 0x437829
mov eax, dword [ebp - 0x14]
push str.packmode
push dword [eax]
call fcn.00457c02
add esp, 8
test eax, eax
jne 0x4376e4
mov eax, dword [ebp - 0x14]
push str.flat
push dword [eax + 4]
call fcn.00457c02
add esp, 8
test eax, eax
je 0x4376a1
mov eax, dword [ebp - 0x14]
push 0x45a368
push dword [eax + 4]
call fcn.00457c02
add esp, 8
test eax, eax
je 0x4376a1
mov eax, dword [ebp - 0x14]
push 0x45a370
push dword [eax + 4]
call fcn.00457c02
add esp, 8
test eax, eax
jne 0x437ae4
mov eax, 2
jmp 0x4376a6
mov eax, 1
mov edx, dword [0x4abfa0]
test edx, edx
jne 0x4376ba
mov dword [0x4aa008], eax
jmp 0x437a3e
mov ecx, dword [0x4aa008]
cmp ecx, eax
je 0x437a3e
cmp ecx, 1
jne 0x437afa
cmp eax, 2
jne 0x437afa
mov dword [0x4aa008], eax
jmp 0x437a3e
mov eax, dword [ebp - 8]
cmp eax, 2
jne 0x437829
mov eax, dword [ebp - 0x14]
push str.sequence
push dword [eax]
call fcn.00442cc0
add esp, 8
test eax, eax
je 0x437826
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call fcn.00446d3b
push 0x20
mov edi, eax
call fcn.00445d58
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x437756
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], eax
mov byte [ecx + 4], 1
mov dword [ecx + 8], 0
jmp 0x437758
xor ecx, ecx
mov dword [0x4abf40], ecx
mov dword [ecx], edi
mov eax, dword [ebp - 0x14]
push str.sequence
push dword [eax]
call fcn.00442cc0
mov edi, eax
push 0x45a292
push edi
call fcn.00457c02
add esp, 0x10
test eax, eax
je 0x4377d9
push str._rgba
push edi
call fcn.00457c02
add esp, 8
test eax, eax
je 0x4377d9
push str._rgb
push edi
call fcn.00457c02
add esp, 8
test eax, eax
jne 0x4377b5
mov eax, dword [0x4abf40]
mov dword [eax + 8], 1
jmp 0x4377e5
push 0x45a434
push edi
call fcn.00457c02
add esp, 8
test eax, eax
jne 0x437b11
mov eax, dword [0x4abf40]
mov dword [eax + 8], 2
jmp 0x4377e5
mov eax, dword [0x4abf40]
mov dword [eax + 8], 0
mov eax, dword [0x4aa008]
dec eax
je 0x437803
dec eax
jne 0x437812
mov eax, dword [0x4abf40]
mov eax, dword [eax + 8]
dec eax
cmp eax, 1
jbe 0x437812
jmp 0x437ac9
mov eax, dword [0x4abf40]
cmp dword [eax + 8], 0
jne 0x437b2c
push 0x4abf40
mov ecx, 0x4abf94
call fcn.00435ee0
jmp 0x437a3e
mov eax, dword [ebp - 8]
cmp eax, 3
jl 0x437b69
mov eax, dword [ebp - 0x14]
push str.frame
push dword [eax]
call fcn.00457c02
add esp, 8
test eax, eax
jne 0x437b69
cmp dword [0x4abf40], eax
je 0x437a3e
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
push dword [eax + ecx*4 - 4]
call fcn.00446d2a
mov eax, dword [ebp - 8]
xor edi, edi
add eax, 0xfffffffe
mov dword [ebp - 0x28], edi
add esp, 4
fstp dword [ebp - 0x44]
test eax, eax
jle 0x437a29
mov eax, dword [ebp - 0x14]
mov ecx, 0x4abf5c
mov ebx, dword [eax + edi*4 + 4]
lea eax, [ebp - 0x3e]
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.004438c0
mov ecx, 0xffff
cmp word [eax], cx
jne 0x437931
push 0x28
call fcn.00445d58
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4378e9
mov dword [ebx + 0xc], 0x436b80
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x1c], 0xffff
mov dword [ebx + 0x20], 0xffffffff
mov dword [ebx + 0x24], eax
jmp 0x4378eb
xor ebx, ebx
push dword [ebp - 0x18]
call fcn.00436020
add esp, 4
mov dword [ebx], eax
lea eax, [ebp - 0x20]
mov ecx, 0x4abf5c
push dword [ebp - 0x18]
push eax
call fcn.00443680
movzx eax, word [ebp - 0x20]
mov dword [ebp - 0x34], eax
cmp dword [0x4abf54], eax
jg 0x437924
inc eax
mov ecx, 0x4abf48
push eax
call fcn.004362d0
mov eax, dword [0x4abf48]
mov ecx, dword [ebp - 0x34]
mov dword [eax + ecx*4], ebx
jmp 0x437962
push ebx
lea eax, [ebp - 0x1c]
mov ecx, 0x4abf5c
push eax
call fcn.00443680
movzx ebx, word [ebp - 0x1c]
cmp dword [0x4abf54], ebx
jg 0x43795a
lea eax, [ebx + 1]
mov ecx, 0x4abf48
push eax
call fcn.004362d0
mov eax, dword [0x4abf48]
mov ebx, dword [eax + ebx*4]
cmp dword [0x4aa008], 2
mov dword [ebp + edi*4 - 0x54], ebx
jne 0x4379ab
movzx edi, word [ebx + 0x1e]
xor eax, eax
xor ecx, ecx
cmp ax, di
jae 0x4379ab
mov edx, dword [ebx + 0x10]
nop
movzx eax, cx
add eax, eax
mov edx, dword [edx + eax*8 + 8]
mov eax, dword [edx + 8]
test eax, eax
je 0x4379a2
mov esi, dword [0x4abf40]
cmp eax, dword [esi + 8]
mov esi, dword [ebp - 0x24]
jne 0x437b47
mov edx, dword [ebx + 0x10]
inc ecx
cmp cx, di
jb 0x437980
mov eax, dword [0x4abf40]
add ebx, 0xc
mov dword [ebp - 0x30], eax
mov ecx, ebx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], 1
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00436340
mov ecx, ebx
call fcn.00436c20
push dword [ebp - 0x38]
movzx edi, ax
mov ecx, ebx
push dword [ebp - 0x3c]
push edi
call fcn.00436ba0
inc word [ebx + 0x12]
mov ecx, edi
shl ecx, 4
add ecx, 8
add ecx, dword [ebx + 4]
je 0x437a04
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 4], eax
mov edi, dword [ebp - 0x28]
test edi, edi
jne 0x437a17
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
inc edi
add eax, 0xfffffffe
mov dword [ebp - 0x28], edi
cmp edi, eax
jl 0x437880
mov ecx, dword [0x4abf40]
lea eax, [ebp - 0x54]
add ecx, 0xc
push eax
push dword [ecx + 0xc]
call fcn.00436550
lea ecx, [ebp - 0x14]
call fcn.004374c0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], 0
test eax, eax
js 0x437a77
test edx, edx
je 0x437a70
mov eax, dword [sym.imp.tier0.dll_g_pMemAlloc]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], edx
test eax, eax
js 0x437a8f
test edx, edx
je 0x437a8f
mov eax, dword [sym.imp.tier0.dll_g_pMemAlloc]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [0x4b7c00]
lea edx, [ebp - 0x1054]
push esi
push 0x1000
push edx
mov eax, dword [ecx]
call dword [eax + 0x5c]
test eax, eax
jne 0x437565
pop edi
pop ebx
test esi, esi
je 0x437ac4
mov ecx, dword [0x4b7c00]
add ecx, 4
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push dword [eax]
push 1
push str._line__d:_invalid_sequence_type__s__packing_rgba_allows_only_sequence_rgb_or_sequence_a__n
call fcn.00446d6d
add esp, 0xc
push 0xffffffffffffffff
call fcn.00446bf0
push 1
push str._line__d:_invalid_packmode_specified__allowed_values_are_rgba_or_rgba__n
call fcn.00446d6d
add esp, 8
push 0xffffffffffffffff
call fcn.00446bf0
push edx
push 1
push str._line__d:_incompatible_packmode_change_when__d_sequences_already_defined__n
call fcn.00446d6d
add esp, 0xc
push 0xffffffffffffffff
call fcn.00446bf0
mov eax, dword [ebp - 0x14]
push dword [eax]
push 1
push str._line__d:_invalid_sequence_type__s__allowed_sequence_rgba_or_sequence_rgb_or_sequence_a__n
call fcn.00446d6d
add esp, 0xc
push 0xffffffffffffffff
call fcn.00446bf0
mov eax, dword [ebp - 0x14]
push dword [eax]
push 1
push str._line__d:_invalid_sequence_type__s__packing_flat_allows_only_sequence_rgba__n
call fcn.00446d6d
add esp, 0xc
push 0xffffffffffffffff
call fcn.00446bf0
mov eax, dword [0x4abf40]
push dword [eax]
push dword [edx]
push dword [ebp - 0x18]
push 1
push str._line__d:_rgba_packing_cannot_pack_frame__s_belonging_to_sequences__d_and__d__n
call fcn.00446d6d
add esp, 0x14
push 0xffffffffffffffff
call fcn.00446bf0
push edi
push 1
push str._line__d:_Bad_command___s___n
call fcn.00446d6d
add esp, 0xc
push 0xffffffffffffffff
call fcn.00446bf0
int3