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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, ebx
imul eax, eax, 0x348
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov dword [edi + 0x18], ebx
mov edx, dword [ecx + 8]
mov ecx, dword [edi + 0xc]
add edx, eax
mov dword [esp + 0x60], eax
mov eax, ebx
imul eax, eax, 0x754
mov dword [edi + 0x10], edx
add eax, dword [ecx + 0x54]
mov esi, edx
mov dword [esp + 0x64], 0
mov dword [edi + 0x14], eax
mov dword [esp + 0x5c], esi
call fcn.005a34f0
mov eax, dword [edi + 0xc]
mov edx, dword [eax + 0x30]
fstp qword [esp + 0x78]
imul edx, dword [eax + 0x2c]
mov ecx, dword [edi]
push edx
lea eax, [ebx + 1]
push eax
push str.tile__d_of__d_n
push 4
push ecx
call fcn.005a3570
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [edi]
push edx
push eax
push ecx
call fcn.005adb60
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
push ebx
push edx
push ecx
push eax
mov dword [esp + 0x8c], eax
call fcn.005ad9f0
mov edx, dword [esp + 0x8c]
push edx
mov ebx, eax
call fcn.005b05f0
add esp, 0x38
cmp ebx, 0xfffffc19
jne 0x5aa7cd
mov eax, dword [edi]
push str.tcd_decode:_incomplete_bistream_n
push 1
push eax
mov dword [esp + 0x70], 1
call fcn.005a3570
add esp, 0xc
call fcn.005a34f0
fstp qword [esp + 0x70]
mov ecx, dword [edi]
push ecx
call fcn.005af700
mov edx, dword [edi + 0x14]
push edx
mov ebx, eax
push esi
push ebx
call fcn.005afb60
push ebx
call fcn.005af740
call fcn.005a34f0
fsub qword [esp + 0x84]
mov eax, dword [edi]
add esp, 0xc
fstp qword [esp]
push str.__tiers_1_took__f_s_n
push 4
push eax
call fcn.005a3570
add esp, 0x14
call fcn.005a34f0
fstp qword [esp + 0x70]
xor ecx, ecx
cmp dword [esi + 0x10], ecx
mov dword [esp + 0x2c], ecx
jle 0x5aa8e7
xor ebx, ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], ecx
mov edx, dword [esi + 0x14]
lea eax, [edx + ecx]
mov ecx, dword [edi + 0xc]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x5aa859
mov edx, dword [eax + 0x10]
sub edx, ecx
mov ecx, dword [edi + 8]
mov ecx, dword [ecx + 0x18]
sub edx, 1
mov dword [ecx + ebx + 0x24], edx
mov edx, dword [edi + 0x14]
mov ecx, dword [edx + 0x750]
mov edx, dword [esp + 0x30]
cmp dword [ecx + edx + 0x14], 1
jne 0x5aa886
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x18]
mov ecx, dword [eax + 0x10]
sub ecx, dword [edx + ebx + 0x24]
sub ecx, 1
push ecx
push eax
call fcn.005abfe0
jmp 0x5aa89d
mov edx, dword [edi + 8]
mov ecx, dword [edx + 0x18]
mov edx, dword [eax + 0x10]
sub edx, dword [ecx + ebx + 0x24]
sub edx, 1
push edx
push eax
call fcn.005ac410
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x48]
mov eax, dword [eax + ecx + 0x10]
add esp, 8
test eax, eax
jle 0x5aa8c1
mov edx, dword [edi + 8]
mov edx, dword [edx + 0x18]
sub eax, dword [edx + ebx + 0x24]
add edx, ebx
sub eax, 1
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x30], 0x434
add eax, 1
add ecx, 0x20
add ebx, 0x30
cmp eax, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], ecx
jl 0x5aa837
call fcn.005a34f0
fsub qword [esp + 0x70]
mov eax, dword [edi]
sub esp, 8
fstp qword [esp]
push 0x649608
push 4
push eax
call fcn.005a3570
mov eax, dword [edi + 0x14]
add esp, 0x14
cmp dword [eax + 0x10], 0
je 0x5aa965
mov ecx, dword [eax + 0x750]
cmp dword [ecx + 0x14], 1
mov eax, dword [esi + 0x14]
jne 0x5aa942
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 4]
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
imul edx, ecx
mov ecx, dword [eax + 0x38]
push edx
mov edx, dword [eax + 0x58]
push edx
mov edx, dword [eax + 0x18]
push ecx
push edx
call fcn.005b00b0
jmp 0x5aa962
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
sub ecx, dword [eax + 4]
sub edx, dword [eax]
imul ecx, edx
mov edx, dword [eax + 0x38]
push ecx
mov ecx, dword [eax + 0x58]
mov eax, dword [eax + 0x18]
push ecx
push edx
push eax
call fcn.005b03b0
add esp, 0x10
xor ebx, ebx
cmp dword [esi + 0x10], ebx
mov dword [esp + 0x2c], ebx
jle 0x5aabaf
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov edx, dword [edi + 8]
mov eax, dword [esi + 0x14]
mov ecx, dword [edx + 0x18]
mov esi, dword [ecx + ebx + 0x24]
add eax, dword [esp + 0x3c]
imul esi, esi, 0x7c
add esi, dword [eax + 0x14]
add ecx, ebx
cmp dword [ecx + 0x20], 0
mov dword [esp + 0x6c], eax
je 0x5aa9ad
mov dword [esp + 0x44], 0
jmp 0x5aa9c2
mov ecx, dword [edx + 0x18]
mov ecx, dword [ecx + ebx + 0x18]
sub ecx, 1
mov ebx, 1
shl ebx, cl
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x30]
mov ecx, dword [edx + 0x18]
add ecx, ebx
mov ebx, dword [ecx + 0x20]
test ebx, ebx
mov dword [esp + 0x58], ecx
je 0x5aa9eb
mov ecx, dword [ecx + 0x18]
sub ecx, 1
or ebx, 0xffffffff
shl ebx, cl
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x48], ebx
jmp 0x5aa9f3
mov dword [esp + 0x48], 0
cmp dword [ecx + 0x20], 0
mov ecx, dword [ecx + 0x18]
mov ebx, 1
je 0x5aaa03
sub ecx, ebx
mov edx, dword [edx + 0x18]
shl ebx, cl
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
mov eax, dword [esp + 0x30]
add eax, edx
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 8]
sub ebx, 1
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0x28]
mov edx, 1
shl edx, cl
mov dword [esp + 0x4c], ebx
mov ebx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
lea edx, [ebx + edx - 1]
sar edx, cl
mov dword [esp + 0x58], edx
mov edx, 1
shl edx, cl
lea ebx, [eax + edx - 1]
sar ebx, cl
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
mov dword [esp + 0x38], ecx
jge 0x5aab7f
mov eax, dword [esi + 8]
mov edx, ecx
sub edx, ebx
imul edx, dword [esp + 0x54]
sub edx, dword [esp + 0x58]
mov dword [esp + 0x58], edx
mov ebx, dword [esi]
cmp ebx, eax
jge 0x5aab67
lea eax, [edx + ebx]
add eax, eax
add eax, eax
mov dword [esp + 0x50], eax
jmp 0x5aaa90
sub ecx, dword [esi + 4]
mov edx, dword [esp + 0x6c]
imul ecx, dword [esp + 0x68]
sub ecx, dword [esi]
mov eax, dword [edx + 0x18]
mov edx, dword [edi + 0x14]
add ecx, ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [edx + 0x750]
mov edx, dword [esp + 0x40]
cmp dword [eax + edx + 0x14], 1
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
fmul qword [0x649600]
fstp dword [esp + 0x34]
je 0x5aab1f
fld dword [esp + 0x34]
sub esp, 8
fadd st(0), st(0)
fabs
fstp qword [esp]
call fcn.005ba270
call fcn.0044eb60
and eax, 0x80000001
jns 0x5aaaf0
dec eax
or eax, 0xfffffffe
inc eax
fld dword [esp + 0x3c]
mov dword [esp + 0x78], eax
fabs
fstp qword [esp]
call fcn.005ba270
add esp, 8
call fcn.0044eb60
fldz
fcomp dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
add ecx, eax
fnstsw ax
test ah, 0x41
jne 0x5aab1f
neg ecx
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
cmp ecx, eax
jl 0x5aab33
mov eax, dword [esp + 0x4c]
cmp ecx, eax
jle 0x5aab35
mov ecx, eax
mov eax, dword [edi + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [esp + 0x30]
mov edx, dword [edx + eax + 0x2c]
mov eax, dword [esp + 0x50]
mov dword [eax + edx], ecx
mov ecx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x50], eax
mov eax, dword [esi + 8]
add ebx, 1
cmp ebx, eax
jl 0x5aaa90
mov edx, dword [esp + 0x58]
add edx, dword [esp + 0x54]
add ecx, 1
cmp ecx, dword [esi + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x58], edx
jl 0x5aaa70
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x5c]
add dword [esp + 0x3c], 0x20
add dword [esp + 0x40], 0x434
add eax, 1
add ebx, 0x30
cmp eax, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
jl 0x5aa980
call fcn.005a34f0
fsub qword [esp + 0x78]
mov eax, dword [edi]
sub esp, 8
fstp qword [esp]
push str.__tile_decoded_in__f_s_n
push 4
push eax
call fcn.005a3570
xor ebx, ebx
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [esp + 0x2c], ebx
jle 0x5aac24
jmp 0x5aabe0
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x60]
mov ecx, dword [edx + eax + 0x14]
mov edx, dword [ecx + ebx + 0x18]
push edx
call fcn.005a3560
mov eax, dword [edi + 4]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x64]
mov eax, dword [ecx + edx + 0x14]
mov dword [eax + ebx + 0x18], 0
mov eax, dword [esp + 0x30]
add eax, 1
add esp, 4
add ebx, 0x20
cmp eax, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
jl 0x5aabe0
xor eax, eax
cmp dword [esp + 0x64], eax
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret