Function at 0x5497a0
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x15c]
xor ebx, ebx
cmp dword [eax + 0xc], ebx
push esi
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebx
jne 0x5497dd
mov edx, dword [eax + 0x24]
cmp edx, ebx
je 0x5497fb
mov ecx, dword [eax + 0x28]
sub ecx, edx
sar ecx, 2
cmp ecx, ebx
jle 0x5497fb
mov ecx, edx
cmp dword [ecx], ebx
je 0x5497fb
mov dword [esp + 0x20], eax
jmp 0x5497fb
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x5497fb
jmp 0x5497f0
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x5497f0
lea eax, [ebp + 0x190]
push eax
call fcn.0058b0cc
add esp, 4
cmp dword [ebp + 0x170], ebx
mov dword [esp + 0x1c], ebx
jle 0x54a0f7
lea ebx, [ebx]
mov ebx, dword [esp + 0x1c]
fldz
mov edx, dword [ebp + 0x174]
imul ebx, ebx, 0x84
mov eax, dword [edx + ebx]
test al, 0x35
lea ecx, [edx + ebx]
je 0x549a6f
xor edi, edi
fstp st(0)
test al, 1
mov dword [esp + 0x18], edi
je 0x549856
mov edi, dword [ecx + 0x18]
shl edi, 5
mov dword [esp + 0x18], edi
test al, 4
je 0x549867
mov edx, dword [ecx + 0x18]
lea edx, [edx + edx*2]
lea edi, [edi + edx*8]
mov dword [esp + 0x18], edi
test al, 0x10
je 0x549877
mov eax, dword [ecx + 0x18]
shl eax, 5
add edi, eax
mov dword [esp + 0x18], edi
push edi
call fcn.00587be5
mov ecx, dword [ebp + 0x174]
add esp, 4
test byte [ebx + ecx], 4
mov esi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], 0
je 0x54996b
mov edx, ecx
mov ecx, dword [edx + ebx + 4]
lea eax, [edx + ebx]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp + 0x174]
mov ecx, dword [edx + ebx + 0x1c]
or dword [edx + ebx], 8
lea eax, [edx + ebx]
mov edx, dword [ebp + 0x174]
cmp dword [edx + ebx + 0x18], 0
lea eax, [edx + ebx]
mov dword [esp + 0x30], ecx
jle 0x549a04
xor ecx, ecx
lea edx, [esi + 0x38]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ecx
mov esi, dword [eax + 4]
add esi, dword [esp + 0x24]
lea edi, [edx - 0x38]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x174]
mov eax, dword [eax + ebx + 0x14]
add eax, dword [esp + 0x10]
add dword [esp + 0x10], 0x18
mov ecx, dword [eax]
mov dword [edx - 0x18], ecx
mov ecx, dword [eax + 4]
mov dword [edx - 0x14], ecx
mov ecx, dword [eax + 8]
mov dword [edx - 0x10], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx - 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx - 8], ecx
mov eax, dword [eax + 0x14]
mov dword [edx - 4], eax
mov ecx, dword [ebp + 0x174]
mov esi, dword [ecx + ebx + 0xc]
mov eax, dword [esp + 0x24]
add esi, eax
add eax, 0x20
mov edi, edx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x174]
add ecx, 1
add eax, ebx
add edx, 0x58
cmp ecx, dword [eax + 0x18]
mov dword [esp + 0x14], ecx
jl 0x5498e0
jmp 0x5499fc
mov ecx, dword [ebp + 0x174]
mov edx, dword [ecx + ebx + 4]
lea eax, [ecx + ebx]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0x174]
mov ecx, dword [eax + ebx + 0x1c]
or dword [eax + ebx], 0x40
add eax, ebx
mov eax, dword [ebp + 0x174]
add eax, ebx
cmp dword [eax + 0x18], 0
mov dword [esp + 0x30], ecx
mov edx, esi
jle 0x549a04
mov dword [esp + 0x24], 0
jmp 0x5499b0
mov esi, dword [eax + 4]
add esi, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov edi, edx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x174]
mov esi, dword [ecx + ebx + 0xc]
add esi, eax
add eax, 0x20
lea edi, [edx + 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x174]
add ecx, 1
add eax, ebx
add edx, 0x40
cmp ecx, dword [eax + 0x18]
mov dword [esp + 0x14], ecx
jl 0x5499b0
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 0x174]
and dword [eax + ebx], 0xfffffffd
mov ecx, dword [ebp + 0x174]
mov edx, dword [esp + 0x30]
add eax, ebx
push edi
push esi
mov dword [ecx + ebx + 8], 0
push edx
mov ecx, ebp
call fcn.00532960
push esi
call fcn.0058881a
fldz
mov eax, dword [ebp + 0x174]
and dword [eax + ebx], 0xffffffca
add eax, ebx
mov eax, dword [ebp + 0x174]
add esp, 4
xor edi, edi
mov dword [eax + ebx + 4], edi
mov ecx, dword [ebp + 0x174]
mov dword [ecx + ebx + 0x14], edi
mov edx, dword [ebp + 0x174]
mov dword [edx + ebx + 0xc], edi
mov eax, dword [ebp + 0x174]
mov dword [eax + ebx + 0x10], edi
jmp 0x549a8c
mov eax, dword [ebp + 0x174]
and dword [eax + ebx], 0xffffffca
add eax, ebx
mov eax, dword [ebp + 0x174]
or dword [eax + ebx], 0x80
add eax, ebx
xor edi, edi
mov ecx, dword [ebp + 0x174]
fld1
mov dword [ecx + ebx + 0x70], ebp
mov edx, dword [ebp + 0x174]
mov dword [edx + ebx + 0x4c], edi
mov eax, dword [ebp + 0x174]
mov dword [eax + ebx + 0x50], edi
mov ecx, dword [ebp + 0x174]
mov dword [ecx + ebx + 0x54], edi
mov edx, dword [ebp + 0x174]
fstp dword [edx + ebx + 0x58]
mov eax, dword [ebp + 0x174]
fst dword [eax + ebx + 0x5c]
mov ecx, dword [ebp + 0x174]
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x3c]
fst dword [eax + 0x64]
fst dword [eax + 0x60]
fst dword [eax + 0x6c]
fstp dword [eax + 0x68]
mov edx, dword [eax + 0x38]
push edx
call fcn.005441a0
push eax
mov ecx, 0xa47ba8
call fcn.00543f10
mov esi, eax
cmp esi, edi
je 0x54a170
mov eax, dword [ebp + 0x174]
mov dword [eax + ebx + 0x38], esi
mov eax, dword [ebp + 0x174]
or dword [eax + ebx], 0x40000000
mov ecx, dword [0xa47b78]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2a8]
add eax, ebx
mov eax, dword [ebp + 0x174]
add eax, ebx
push eax
call edx
mov eax, dword [ebp + 0x174]
cmp dword [eax + ebx + 0x48], edi
je 0x54a194
mov eax, dword [esi + 0x16c]
push eax
mov ecx, esi
call fcn.00543390
mov edi, eax
mov eax, dword [esi + 0x16c]
push eax
mov ecx, esi
mov dword [esi + 0x49c], edi
call fcn.005433d0
add eax, edi
mov dword [esi + 0x4a0], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x174]
mov edx, dword [ecx + ebx + 0x20]
xor edi, edi
cmp eax, edi
je 0x549bc2
add dword [eax + 0x2b4], edx
mov ecx, dword [ebp + 0x174]
test byte [ebx + ecx], 8
mov edx, ecx
je 0x549ba3
mov ecx, dword [edx + ebx + 0x18]
add dword [eax + 0x2ac], ecx
jmp 0x549c19
test byte [edx + ebx], 0x80
lea ecx, [edx + ebx]
je 0x549bb7
mov ecx, dword [ecx + 0x18]
add dword [eax + 0x2b0], ecx
jmp 0x549c19
mov edx, dword [ecx + 0x18]
add dword [eax + 0x2a8], edx
jmp 0x549c19
mov eax, dword [ebp + 0x15c]
add dword [eax + 0x2b4], edx
mov eax, dword [ebp + 0x174]
test byte [ebx + eax], 8
je 0x549bf2
mov ecx, dword [ebp + 0x174]
mov eax, dword [ebp + 0x15c]
mov edx, dword [ecx + ebx + 0x18]
add dword [eax + 0x2ac], edx
jmp 0x549c19
mov eax, dword [ebp + 0x174]
mov ecx, dword [ebp + 0x15c]
add eax, ebx
test byte [eax], 0x80
je 0x549c10
mov edx, dword [eax + 0x18]
add dword [ecx + 0x2b0], edx
jmp 0x549c19
mov eax, dword [eax + 0x18]
add dword [ecx + 0x2a8], eax
test byte [ebp], 0x20
je 0x549c57
mov eax, dword [ebp + 0x174]
or dword [eax + ebx], 0x20000000
mov ecx, dword [ebp + 0x174]
add eax, ebx
mov dword [ecx + ebx + 0x40], edi
mov edx, dword [ebp + 0x174]
lea ecx, [edx + ebx]
mov edx, dword [ecx + 0x20]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ecx + 0x44], eax
jmp 0x549c78
mov ecx, dword [ebp + 0x174]
mov dword [ecx + ebx + 0x40], 1
mov edx, dword [ebp + 0x174]
mov ecx, dword [edx + ebx + 0x20]
lea eax, [edx + ebx]
sub ecx, 2
mov dword [eax + 0x44], ecx
mov eax, dword [ebp + 0x15c]
test dword [eax], 0x100000
mov dword [esp + 0x10], 0x100
je 0x549ca3
and dword [eax + 0xc8], 0xfffffffe
mov eax, dword [ebp + 0x174]
add eax, ebx
or dword [eax], 0x8000
mov edx, dword [ebp + 0x174]
mov eax, dword [edx + ebx + 0x38]
mov eax, dword [eax]
test al, 0x20
je 0x549cbb
mov dword [esp + 0x10], 0x900
test eax, 0x40000
je 0x549cca
or dword [esp + 0x10], 0x800
test eax, 0x800
je 0x549cd6
or dword [esp + 0x10], 4
test al, 0x40
je 0x549ce2
or dword [esp + 0x10], 0x400
mov ecx, dword [ebp + 0x174]
mov edx, dword [ecx + ebx + 0x48]
mov esi, dword [ecx + ebx + 0x38]
lea eax, [ecx + ebx]
mov ecx, dword [edx + 0x240]
mov edx, dword [ecx]
push 0x63
mov ecx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], esi
call fcn.00543390
push 0x63
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.00543390
push 0x63
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.005433d0
mov ecx, dword [esp + 0x30]
add ecx, eax
cmp dword [esp + 0x14], ecx
jge 0x549ecf
jmp 0x549d40
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x174]
mov ecx, dword [ecx + ebx + 0x38]
push eax
call fcn.00543210
mov esi, eax
cmp dword [esi + 4], 1
jle 0x549d78
cmp dword [esi + 0x54], 6
je 0x549d78
mov eax, dword [ebp + 0x174]
or dword [eax + ebx], 0x80000
add eax, ebx
or dword [ebp], 0x80
test byte [esi], 0x80
je 0x549d82
or dword [esp + 0x10], 1
test byte [esi + 0x60], 2
je 0x549d90
and dword [esp + 0x10], 0xfffffbff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x549ea0
cmp edi, dword [eax + 0xe0]
jge 0x549ea0
push edi
mov ecx, eax
call fcn.0055af10
cmp dword [eax + 0xe8], 1
jne 0x549dc5
mov dword [esi + 0x98], 1
jmp 0x549de7
mov ecx, dword [esp + 0x18]
push edi
call fcn.0055af10
xor edx, edx
cmp dword [eax + 0xe8], 2
setne dl
sub edx, 1
and edx, 2
mov dword [esi + 0x98], edx
mov ecx, dword [esp + 0x18]
push edi
call fcn.0055af10
cmp dword [eax + 0xec], 1
jne 0x549e06
mov dword [esi + 0x9c], 1
jmp 0x549e28
mov ecx, dword [esp + 0x18]
push edi
call fcn.0055af10
xor ecx, ecx
cmp dword [eax + 0xec], 2
setne cl
sub ecx, 1
and ecx, 2
mov dword [esi + 0x9c], ecx
mov ecx, dword [esp + 0x18]
push edi
call fcn.0055af10
cmp dword [eax + 0xf0], 1
jne 0x549e47
mov dword [esi + 0xa0], 1
jmp 0x549e69
mov ecx, dword [esp + 0x18]
push edi
call fcn.0055af10
xor edx, edx
cmp dword [eax + 0xf0], 2
setne dl
sub edx, 1
and edx, 2
mov dword [esi + 0xa0], edx
mov ecx, dword [esp + 0x18]
push edi
call fcn.0055af10
cmp byte [eax + 0xfe], 0
mov ecx, dword [esp + 0x18]
setne al
push edi
mov byte [esi + 0x81], al
call fcn.0055af10
cmp byte [eax + 0xfc], 0
setne cl
mov byte [esi + 0x80], cl
add edi, 1
mov esi, dword [esp + 0x2c]
add dword [esp + 0x14], 1
push 0x63
mov ecx, esi
call fcn.00543390
push 0x63
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.005433d0
mov ecx, dword [esp + 0x30]
add ecx, eax
cmp dword [esp + 0x14], ecx
jl 0x549d40
mov edx, dword [ebp + 0x174]
mov ecx, dword [edx + ebx + 0x38]
call fcn.00543d00
test eax, eax
mov ecx, dword [ebp + 0x174]
jne 0x54a1db
mov eax, dword [esp + 0x10]
mov ecx, dword [ecx + ebx + 0x38]
xor esi, esi
push esi
push eax
call fcn.00543950
mov edx, dword [ebp + 0x174]
mov ecx, dword [edx + ebx + 0x38]
mov ecx, dword [ecx]
and ecx, 0x50120
lea eax, [edx + ebx]
jne 0x549f3c
mov edx, dword [ebp]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
add edx, 2
mov dword [eax + 0x3c], edx
mov eax, dword [ebp + 0x174]
add eax, ebx
or dword [eax], 0x100
jmp 0x549fe4
cmp ecx, 0x120
jg 0x549f9d
je 0x549f8d
cmp ecx, 0x20
je 0x549f71
cmp ecx, 0x100
jne 0x549fe4
mov eax, dword [ebp + 0x174]
mov dword [eax + ebx + 0x3c], esi
or dword [ebp], 0x10
mov eax, dword [ebp + 0x174]
add eax, ebx
or dword [eax], ecx
jmp 0x549fe4
mov ecx, dword [ebp]
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add ecx, 6
mov dword [eax + 0x3c], ecx
or dword [ebp], 0x100
jmp 0x549fe4
mov dword [eax + 0x3c], 1
or dword [ebp], 0x110
jmp 0x549fe4
cmp ecx, 0x10020
je 0x549fd6
cmp ecx, 0x40000
jne 0x549fe4
test dword [ebp], 0x80000000
je 0x549fc6
mov dword [eax + 0x3c], 5
or dword [ebp], 0x100
jmp 0x549fe4
mov dword [eax + 0x3c], 4
or dword [ebp], 0x40000100
jmp 0x549fe4
mov dword [eax + 0x3c], 7
or dword [ebp], 0x10000100
mov edx, dword [ebp + 0x174]
mov dword [edx + ebx + 0x28], esi
mov eax, dword [ebp + 0x174]
mov dword [eax + ebx + 0x2c], esi
mov ecx, dword [ebp + 0x174]
mov edx, dword [ecx + ebx + 0x48]
lea eax, [ecx + ebx]
mov eax, dword [eax + 0x3c]
cmp byte [edx + eax + 0x2cc], 0
jne 0x54a036
mov eax, dword [ecx + ebx + 0x3c]
add dword [eax*4 + 0xa47bb4], 1
mov edx, dword [ebp + 0x174]
mov ecx, dword [edx + ebx + 0x48]
lea eax, [edx + ebx]
mov edx, dword [eax + 0x3c]
mov byte [ecx + edx + 0x2cc], 1
lea eax, [ebp + 0x190]
push eax
call fcn.0058b0cc
mov eax, dword [ebp + 0x174]
mov ecx, dword [eax + ebx + 0x3c]
mov edx, dword [eax + ebx + 0x38]
add eax, ebx
add esp, 4
push ecx
mov ecx, dword [eax + 0x48]
push edx
call fcn.0055b0d0
mov eax, dword [ebp + 0x174]
mov ecx, dword [eax + ebx + 0x3c]
add eax, ebx
push ecx
mov ecx, dword [eax + 0x38]
call fcn.00543840
test dword [ebp], 0x8000000
jne 0x54a08b
mov edx, dword [ebp + 0x15c]
test dword [edx], 0x200000
je 0x54a099
mov eax, dword [ebp + 0x174]
add eax, ebx
or dword [eax], 0x400000
test dword [ebp], 0x20000000
je 0x54a0b0
mov eax, dword [ebp + 0x174]
add eax, ebx
or dword [eax], 0x10000000
mov ecx, dword [ebp + 0x174]
mov ecx, dword [ecx + ebx + 0x38]
lea eax, [esp + 0x34]
push eax
push 4
call fcn.00543600
test dword [esp + 0x34], 0xffffff
je 0x54a0de
mov eax, dword [ebp + 0x174]
add eax, ebx
or dword [eax], 0x40000
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [ebp + 0x170]
mov dword [esp + 0x1c], eax
jl 0x549820
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp + 0x178], ebx
jle 0x54a13a
xor edx, edx
jmp 0x54a110
mov eax, dword [ebp + 0x17c]
mov esi, dword [edx + eax + 8]
lea eax, [edx + eax + 8]
imul esi, esi, 0x84
add esi, dword [ebp + 0x174]
add ecx, 1
mov dword [eax], esi
add edx, 0x20
cmp ecx, dword [ebp + 0x178]
jl 0x54a110
mov eax, dword [ebp]
test eax, 0x100
je 0x54a27e
test eax, 0x10000000
je 0x54a211
mov ecx, dword [ebp + 0x15c]
mov edx, dword [ecx + 0x27c]
add edx, 0xe8
mov dword [ebp + 0x168], edx
jmp 0x54a2cf
push str.Material_global_local_mismatch.
push 0xffffffffffffffff
push ebp
call fcn.00533f30
add esp, 0xc
mov ecx, ebp
call fcn.00533f90
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 8
mov edx, dword [ebp + 0x174]
lea eax, [ebp + 0x190]
push eax
mov eax, dword [esp + 0x20]
imul eax, eax, 0x84
mov ecx, dword [eax + edx + 0x38]
push 0x63
call fcn.00543410
push eax
push str.Could_not_find_shader__s_for_mesh__s
push 0xffffffffffffffff
push ebp
call fcn.00533f30
add esp, 0x14
mov ecx, ebp
call fcn.00533f90
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x1c]
imul eax, eax, 0x84
mov edx, dword [eax + ecx + 0x38]
add edx, 4
push edx
push 0x638ef4
push 0xffffffffffffffff
push ebp
call fcn.00533f30
add esp, 0x10
mov ecx, ebp
call fcn.00533f90
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 8
test al, 0x10
je 0x54a229
mov eax, dword [ebp + 0x15c]
mov ecx, dword [eax + 0x27c]
add ecx, 0x70
jmp 0x54a2c9
test eax, 0x40000000
je 0x54a24c
mov edx, dword [ebp + 0x15c]
mov eax, dword [edx + 0x27c]
add eax, 0xac
mov dword [ebp + 0x168], eax
jmp 0x54a2cf
test eax, eax
jns 0x54a26a
mov ecx, dword [ebp + 0x15c]
mov edx, dword [ecx + 0x27c]
add edx, 0xc0
mov dword [ebp + 0x168], edx
jmp 0x54a2cf
mov eax, dword [ebp + 0x15c]
mov ecx, dword [eax + 0x27c]
add ecx, 0xd4
jmp 0x54a2c9
test al, 0x10
je 0x54a299
mov edx, dword [ebp + 0x15c]
mov eax, dword [edx + 0x27c]
add eax, 0x5c
mov dword [ebp + 0x168], eax
jmp 0x54a2cf
test eax, eax
jns 0x54a2b7
mov ecx, dword [ebp + 0x15c]
mov edx, dword [ecx + 0x27c]
add edx, 0x98
mov dword [ebp + 0x168], edx
jmp 0x54a2cf
mov eax, dword [ebp + 0x15c]
mov ecx, dword [eax + 0x27c]
add ecx, 0x84
mov dword [ebp + 0x168], ecx
mov eax, dword [ebp + 0x168]
add dword [eax + 8], 1
test byte [ebp], 0x80
je 0x54a348
mov edx, dword [ebp + 0x15c]
mov eax, dword [edx + 0x27c]
mov edx, dword [eax + 0x22c]
lea ecx, [eax + 0x224]
mov eax, dword [ecx + 4]
cmp eax, edx
je 0x54a30b
mov edi, edi
cmp dword [eax], ebp
je 0x54a348
add eax, 4
cmp eax, edx
jne 0x54a300
mov esi, dword [ecx + 4]
cmp esi, ebx
jne 0x54a316
xor edx, edx
jmp 0x54a31b
sub edx, esi
sar edx, 2
cmp esi, ebx
je 0x54a338
mov eax, dword [ecx + 0xc]
sub eax, esi
sar eax, 2
cmp edx, eax
jae 0x54a338
mov eax, dword [ecx + 8]
mov dword [eax], ebp
add eax, 4
mov dword [ecx + 8], eax
jmp 0x54a348
mov eax, dword [ecx + 8]
lea edx, [esp + 0x28]
push edx
push 1
push eax
call fcn.0053ad00
test dword [ebp], 0x4000000
je 0x54a50b
mov eax, dword [ebp + 0x15c]
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
jne 0x54a4ad
test dword [eax], 0x100000
mov eax, dword [eax + 0x27c]
je 0x54a400
mov edx, dword [eax + 0x20c]
lea ecx, [eax + 0x204]
mov eax, dword [ecx + 4]
cmp eax, edx
je 0x54a3a0
mov esi, dword [ebp + 0x15c]
cmp dword [eax], esi
je 0x54a47e
add eax, 4
cmp eax, edx
jne 0x54a391
mov esi, dword [ecx + 4]
cmp esi, ebx
jne 0x54a3ab
xor edx, edx
jmp 0x54a3b0
sub edx, esi
sar edx, 2
cmp esi, ebx
je 0x54a3e4
mov eax, dword [ecx + 0xc]
sub eax, esi
sar eax, 2
cmp edx, eax
jae 0x54a3e4
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 0x15c]
lea esi, [ebp + 0x15c]
mov dword [eax], edx
add eax, 4
mov dword [ecx + 8], eax
mov esi, dword [esi]
or dword [esi], 0x800
jmp 0x54a47e
mov eax, dword [ecx + 8]
lea esi, [ebp + 0x15c]
push esi
push 1
push eax
call fcn.0051ece0
mov esi, dword [esi]
or dword [esi], 0x800
jmp 0x54a47e
mov edx, dword [eax + 0x21c]
lea ecx, [eax + 0x214]
mov eax, dword [ecx + 4]
cmp eax, edx
je 0x54a42b
mov esi, dword [ebp + 0x15c]
lea esp, [esp]
cmp dword [eax], esi
je 0x54a47e
add eax, 4
cmp eax, edx
jne 0x54a420
mov esi, dword [ecx + 4]
cmp esi, ebx
jne 0x54a436
xor edx, edx
jmp 0x54a43b
sub edx, esi
sar edx, 2
cmp esi, ebx
je 0x54a464
mov eax, dword [ecx + 0xc]
sub eax, esi
sar eax, 2
cmp edx, eax
jae 0x54a464
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 0x15c]
lea esi, [ebp + 0x15c]
mov dword [eax], edx
add eax, 4
mov dword [ecx + 8], eax
jmp 0x54a476
mov eax, dword [ecx + 8]
lea esi, [ebp + 0x15c]
push esi
push 1
push eax
call fcn.0051ece0
mov esi, dword [esi]
or dword [esi], 0x400
mov eax, dword [ebp + 0x15c]
mov edx, dword [eax + 0x298]
lea ecx, [eax + 0x290]
mov eax, dword [ecx + 4]
cmp eax, edx
je 0x54a4a2
cmp dword [eax], ebp
je 0x54a50b
add eax, 4
cmp eax, edx
jne 0x54a497
mov esi, dword [ecx + 4]
cmp esi, ebx
jne 0x54a4d9
xor edx, edx
jmp 0x54a4de
mov eax, dword [ecx + 0x294]
mov edx, dword [ecx + 0x298]
add ecx, 0x290
cmp eax, edx
je 0x54a4ce
cmp dword [eax], ebp
je 0x54a50b
add eax, 4
cmp eax, edx
jne 0x54a4c3
mov esi, dword [ecx + 4]
cmp esi, ebx
jne 0x54a4d9
xor edx, edx
jmp 0x54a4de
sub edx, esi
sar edx, 2
cmp esi, ebx
je 0x54a4fb
mov eax, dword [ecx + 0xc]
sub eax, esi
sar eax, 2
cmp edx, eax
jae 0x54a4fb
mov eax, dword [ecx + 8]
mov dword [eax], ebp
add eax, 4
mov dword [ecx + 8], eax
jmp 0x54a50b
mov eax, dword [ecx + 8]
lea edx, [esp + 0x28]
push edx
push 1
push eax
call fcn.0053ad00
lea esi, [ebp + 8]
lea edi, [ebp + 0x68]
mov ecx, 0x18
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0xec], ebx
push ebx
mov ecx, ebp
mov dword [ebp + 0x16c], ebx
call fcn.00534260
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 8