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

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x90]
imul ebx, ebx, 0x84
cmp dword [esp + 0x4c], 0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 0x588c]
mov ecx, dword [ebx + eax + 4]
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x54], ecx
jle 0x578fbc
mov ecx, dword [eax + ebx + 0x58]
mov edx, dword [esi + 0x510]
imul ecx, ecx, 0x84
push 0x5a0
push edx
mov edx, dword [ecx + eax + 0x2c]
push edx
call ebp
mov eax, dword [esi + 0x588c]
mov ecx, dword [ebx + eax + 4]
mov edx, dword [esi + 0x5884]
imul ecx, ecx, 0x68
mov eax, dword [ecx + edx + 0x10]
test eax, eax
mov dword [esp + 0x3c], eax
jle 0x578ff4
mov ecx, dword [esi + 0x514]
mov edx, dword [esi + 0x504]
add dword [esp + 0x60], eax
push ecx
push edx
push eax
call ebp
add dword [esp + 0x64], eax
mov eax, dword [esp + 0x78]
cmp dword [eax], 0xffffffff
mov edi, dword [esp + 0x5c]
jne 0x579077
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x54]
mov edx, dword [esi + 0x5884]
imul eax, eax, 0x68
test byte [eax + edx + 0x24], 0x10
mov ebx, dword [eax + edx + 0x4c]
lea ecx, [eax + edx]
je 0x579028
test ebx, ebx
jle 0x57902a
xor ebx, ebx
jmp 0x57902e
test ebx, ebx
jge 0x57902e
neg ebx
mov ecx, dword [esi + 0x5884]
mov eax, dword [eax + ecx + 0x54]
cmp eax, ebx
jle 0x57903e
mov ebx, eax
mov edx, dword [esi + 0x514]
push 0x5a0
push edx
push ebx
call ebp
mov ecx, dword [esp + 0x7c]
mov dword [ecx], eax
mov edx, dword [esi + 0x504]
push 0x5a0
push edx
push ebx
call ebp
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0xac]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
push esi
call fcn.004be780
mov ecx, dword [esi + 0x5890]
mov edx, dword [esi + 0x514]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xbc]
imul eax, eax, 0x34
add esp, 0x20
test byte [eax + ecx + 0x10], 2
push 0x5a0
mov dword [esp + 0x24], eax
push edx
je 0x5790e1
mov eax, dword [esi + 0x588c]
mov ecx, dword [ebx + eax + 0x2c]
push ecx
jmp 0x5790e6
mov eax, dword [esp + 0x30]
push eax
call ebp
mov ecx, dword [esi + 0x514]
mov edx, dword [esp + 0x2c]
push 0x5a0
push ecx
push edx
mov dword [esp + 0x24], eax
call ebp
mov ecx, dword [esp + 0x18]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x68]
add dword [ecx], edx
mov ecx, dword [esi + 0x514]
mov edx, dword [esi + 0x504]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
push edx
add eax, ecx
push eax
call ebp
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x6c]
add dword [ecx], eax
push edx
push esi
mov dword [esp + 0x64], 0
call fcn.0053ac10
add esp, 8
test eax, eax
je 0x57916e
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
push eax
push 0
push ecx
push esi
call fcn.00526d90
add esp, 0x10
mov dword [esp + 0x5c], eax
jmp 0x5791ee
mov edx, dword [esi + 0x588c]
cmp dword [ebx + edx + 0x44], 1
lea eax, [ebx + edx]
je 0x579197
mov ecx, dword [esp + 0x8c]
mov edx, dword [eax + 4]
push ecx
push edx
push esi
call fcn.00537570
add esp, 0xc
test eax, eax
je 0x5791ee
mov eax, dword [esi + 0x588c]
add eax, ebx
test byte [eax + 0x40], 0x10
jne 0x5791ee
cmp dword [eax + 0x6c], 0
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
mov dword [esp + 0x5c], edx
je 0x5791cc
mov eax, dword [esi + 0x514]
push 0x5a0
push eax
push 0x2d0
call ebp
mov dword [esp + 0x5c], eax
mov ecx, dword [esi + 0x588c]
test dword [ebx + ecx + 0x40], 0x10000
je 0x5791ee
mov edx, dword [esi + 0x5890]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + edx + 0x28]
add dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x54]
mov edx, dword [esi + 0x5884]
imul eax, eax, 0x68
cmp dword [eax + edx + 0x4c], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
jl 0x579214
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [eax]
jle 0x579214
mov dword [eax], ecx
mov ecx, dword [esi + 0x514]
mov edx, dword [esi + 0x504]
mov eax, dword [eax]
push ecx
push edx
push eax
call ebp
cmp dword [esp + 0xb0], 0
mov ecx, dword [esp + 0x80]
mov dword [ecx], eax
je 0x5792b3
mov edx, dword [esi + 0x588c]
mov eax, dword [ebx + edx + 4]
mov edx, dword [esp + 0x7c]
imul eax, eax, 0x68
mov ecx, dword [esi + 0x5884]
mov ebx, dword [edx]
mov dword [eax + ecx + 0x14], ebx
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
cmp ecx, dword [edi]
jg 0x5792a9
mov eax, ecx
imul eax, eax, 0xb4
lea esp, [esp]
mov ebx, dword [esi + 0x704]
mov ebp, dword [esp + 0x58]
cmp dword [ebx + eax + 0xa4], ebp
jne 0x57929d
mov ebp, dword [edx]
mov dword [ebx + eax + 0x28], ebp
mov ebp, dword [esp + 0x80]
mov ebx, dword [esi + 0x704]
mov ebp, dword [ebp]
mov dword [ebx + eax + 0x38], ebp
add ecx, 1
add eax, 0xb4
cmp ecx, dword [edi]
jle 0x579270
mov ecx, dword [esp + 0x78]
mov dword [ecx], 0xffffffff
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0xd4]
je 0x5796ad
mov edx, dword [esi + 0x588c]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edx + 4]
mov ecx, dword [esi + 0x5884]
imul eax, eax, 0x68
mov ebp, dword [eax + ecx + 0x10]
test ebp, ebp
mov dword [esp + 0x5c], ebp
jle 0x5794ac
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov dword [edx + eax], 1
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x58]
mov dword [ecx + edx + 0xa4], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x98]
mov dword [ecx + edx + 0x40], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x84]
mov eax, dword [eax]
mov dword [ecx + edx + 0x14], eax
mov edx, dword [edi]
mov ecx, dword [esp + 0x60]
imul edx, edx, 0xb4
mov eax, dword [esi + 0x704]
sub ecx, ebp
add ecx, dword [esp + 0x70]
mov dword [edx + eax + 0x18], ecx
mov ecx, dword [esi + 0x514]
mov edx, dword [esi + 0x504]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x64]
add ecx, edx
mov edx, dword [esi + 0x704]
sub ecx, eax
mov eax, dword [edi]
imul eax, eax, 0xb4
mov dword [eax + edx + 0x20], ecx
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov edx, dword [esp + 0xb8]
mov dword [eax + ecx + 0x24], edx
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov edx, dword [esp + 0xd0]
mov dword [eax + ecx + 0xa8], edx
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
test ebx, ebx
mov dword [eax + ecx + 0x88], ebx
jle 0x579416
mov ecx, dword [edi]
mov eax, dword [esi + 0x72c]
mov ebp, dword [esi + 0x704]
mov edx, ebx
imul edx, edx, 0x98
imul ecx, ecx, 0xb4
mov edx, dword [eax + edx + 0x4c]
mov dword [ecx + ebp + 0x9c], edx
mov ebp, dword [esp + 0x5c]
cmp dword [esi + 0x654], 0
jne 0x579443
cmp dword [esp + 0x58], 0
jne 0x579443
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
or dword [eax + ecx + 0x8c], 1
lea eax, [eax + ecx + 0x8c]
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov dword [edx + eax + 0x28], ebp
mov ecx, dword [esi + 0x514]
mov edx, dword [esi + 0x504]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov dword [ecx + edx + 0x38], eax
add dword [edi], 1
mov eax, dword [edi]
push eax
push esi
call fcn.004bba60
add esp, 8
test eax, eax
jne 0x57949f
push 1
push str.Ran_Out_of_Text_Frame_Table__CreateFrames_1_
push esi
call fcn.004e7a10
add esp, 0xc
mov eax, dword [esp + 0x78]
cmp dword [eax], 0
jl 0x5794ac
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [esi + 0x5884]
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
mov dword [ecx + edx + 0x40], eax
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov dword [edx + eax], 1
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x58]
mov dword [ecx + edx + 0xa4], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x98]
mov dword [ecx + edx + 0x40], eax
mov eax, dword [edi]
mov edx, dword [esp + 0x70]
imul eax, eax, 0xb4
mov ecx, dword [esp + 0x60]
add ecx, edx
mov edx, dword [esi + 0x704]
mov dword [eax + edx + 0x18], ecx
mov edx, dword [edi]
mov ecx, dword [esp + 0x74]
imul edx, edx, 0xb4
mov eax, dword [esp + 0x64]
add eax, ecx
mov ecx, dword [esi + 0x704]
mov dword [edx + ecx + 0x20], eax
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [esp + 0xd0]
mov dword [edx + eax + 0xa8], ecx
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
test ebx, ebx
mov dword [edx + eax + 0x88], ebx
jle 0x579597
mov eax, dword [edi]
mov edx, dword [esi + 0x72c]
mov ebp, dword [esi + 0x704]
mov ecx, ebx
imul ecx, ecx, 0x98
imul eax, eax, 0xb4
mov ecx, dword [edx + ecx + 0x4c]
mov dword [eax + ebp + 0x9c], ecx
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [esp + 0x9c]
mov dword [edx + eax + 0x70], ecx
mov eax, dword [edi]
mov edx, dword [esi + 0x5884]
imul eax, eax, 0xb4
mov ecx, dword [esi + 0x704]
mov ebp, dword [esp + 0x20]
mov edx, dword [edx + ebp + 0x50]
mov dword [eax + ecx + 0x24], edx
mov eax, dword [edi]
mov edx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov ecx, dword [esp + 0x84]
mov ebp, dword [ecx]
mov dword [eax + edx + 0x14], ebp
mov eax, dword [edi]
mov edx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov dword [eax + edx + 0x44], 0
mov eax, dword [edi]
mov edx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov ebp, dword [esp + 0x54]
mov dword [eax + edx + 0x6c], ebp
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
mov edx, dword [esp + 0x68]
mov dword [edx], eax
mov edx, dword [edi]
mov ebp, dword [esi + 0x704]
imul edx, edx, 0xb4
mov dword [edx + ebp + 0x28], eax
mov eax, dword [esp + 0x80]
mov eax, dword [eax]
mov edx, dword [esp + 0x6c]
mov dword [edx], eax
mov edx, dword [edi]
mov ebp, dword [esi + 0x704]
imul edx, edx, 0xb4
mov dword [edx + ebp + 0x38], eax
mov eax, dword [edi]
mov edx, dword [esi + 0x704]
imul eax, eax, 0xb4
or dword [eax + edx + 0x8c], 0x80000
lea eax, [eax + edx + 0x8c]
mov eax, dword [edi]
mov edx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov eax, dword [eax + edx + 0x24]
add dword [ecx], eax
add dword [edi], 1
mov eax, dword [edi]
push eax
push esi
call fcn.004bba60
add esp, 8
test eax, eax
jne 0x5796ad
push 1
push str.Ran_Out_of_Text_Frame_Table__CreateFrames_1_
push esi
call fcn.004e7a10
add esp, 0xc
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x8c]
push eax
lea ebp, [edx + ecx]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
mov edx, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x8c]
push edi
push eax
mov eax, dword [esp + 0xb0]
push ebp
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
push ecx
push esi
call fcn.004bf300
mov edx, dword [esi + 0x510]
mov eax, dword [esi + 0x588c]
mov ecx, dword [esp + 0x38]
add esp, 0x28
push 0x5a0
push edx
mov edx, dword [ecx + eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x588c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x510]
push 0x5a0
push eax
mov eax, dword [edx + ecx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0xb4]
mov dword [ecx], eax
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov dword [edx + eax], 0
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x58]
mov dword [ecx + edx + 0xa4], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x98]
mov dword [ecx + edx + 0x40], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0xa4]
mov dword [ecx + edx + 4], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0xa8]
mov dword [ecx + edx + 8], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x64]
mov dword [ecx + edx + 0x18], ebp
mov edx, dword [edi]
mov ecx, dword [esp + 0x74]
imul edx, edx, 0xb4
add eax, ecx
mov ecx, dword [esi + 0x704]
mov dword [edx + ecx + 0x20], eax
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [esp + 0xd0]
mov dword [edx + eax + 0xa8], ecx
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
test ebx, ebx
mov dword [edx + eax + 0x88], ebx
jle 0x57984c
mov eax, dword [edi]
mov edx, dword [esi + 0x72c]
mov ebp, dword [esi + 0x704]
mov ecx, ebx
imul ecx, ecx, 0x98
imul eax, eax, 0xb4
mov ecx, dword [edx + ecx + 0x4c]
mov dword [eax + ebp + 0x9c], ecx
mov eax, dword [edi]
mov edx, dword [esi + 0x588c]
imul eax, eax, 0xb4
mov ebp, dword [esp + 0x10]
mov ecx, dword [esi + 0x704]
mov edx, dword [edx + ebp + 0x3c]
mov dword [eax + ecx + 0x84], edx
mov ecx, dword [edi]
mov eax, dword [esi + 0x588c]
imul ecx, ecx, 0xb4
mov edx, dword [esi + 0x704]
mov eax, dword [eax + ebp + 0x4c]
mov dword [ecx + edx + 0x94], eax
mov ecx, dword [esi + 0x588c]
cmp dword [ecx + ebp + 0x4c], 0xffffff
jne 0x579914
mov edx, ecx
mov ecx, dword [edx + ebp + 0x58]
test ecx, ecx
jle 0x579914
test dword [edx + ebp + 0x40], 0x4000
jne 0x579914
mov eax, ecx
imul eax, eax, 0x84
add eax, edx
cmp dword [eax + 0x4c], 0xffffff
jne 0x5798d7
test dword [eax + 0x40], 0x4000
jne 0x5798d7
mov ecx, dword [eax + 0x58]
test ecx, ecx
jg 0x5798b2
jmp 0x579914
test ecx, ecx
jle 0x579914
mov ecx, dword [edi]
mov eax, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov edx, dword [edx + ebp + 0x4c]
mov dword [ecx + eax + 0x94], edx
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
or dword [eax + ecx + 0x8c], 0x400
lea eax, [eax + ecx + 0x8c]
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [esp + 0xac]
or dword [edx + eax + 0x8c], ecx
lea eax, [edx + eax + 0x8c]
mov edx, dword [esi + 0x588c]
test dword [edx + ebp + 0x40], 0x4000
je 0x579967
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
or dword [eax + ecx + 0x8c], 0x400
lea eax, [eax + ecx + 0x8c]
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [esp + 0x84]
mov ecx, dword [ecx]
mov dword [edx + eax + 0x14], ecx
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [esp + 0xb4]
mov ecx, dword [ecx]
mov dword [edx + eax + 0x24], ecx
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [esp + 0x60]
mov dword [edx + eax + 0x7c], ecx
cmp dword [esi + 0x648], 0
je 0x5799fc
cmp dword [esp + 0x14], 0
je 0x5799fc
test byte [esp + 0x24], 4
je 0x5799fc
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
lea ecx, [edx + eax + 0x7c]
mov edx, dword [esi + 0x500]
mov eax, dword [esi + 0x510]
push edx
push eax
push 3
mov dword [esp + 0x70], ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x64]
add dword [ecx], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x60]
mov dword [ecx + edx + 0x80], eax
je 0x579a49
mov ecx, dword [edi]
mov eax, dword [esp + 0x54]
imul ecx, ecx, 0xb4
mov edx, dword [esi + 0x704]
mov ecx, dword [ecx + edx + 0x14]
lea ebp, [eax*8]
sub ebp, eax
mov eax, dword [esi + 0x5888]
mov dword [eax + ebp*4 + 0x14], ecx
mov ebp, dword [esp + 0x10]
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [eax + edx + 0x24]
add ecx, dword [eax + edx + 0x14]
add eax, edx
mov eax, dword [esp + 0x54]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esi + 0x5888]
mov dword [eax + edx*4 + 0x18], ecx
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x24]
mov dword [ecx + edx + 0x44], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x34]
mov dword [ecx + edx + 0x50], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x38]
mov dword [ecx + edx + 0x54], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x28]
mov dword [ecx + edx + 0x48], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x2c]
mov dword [ecx + edx + 0x4c], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x40]
mov dword [ecx + edx + 0x58], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x44]
mov dword [ecx + edx + 0x5c], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x48]
mov dword [ecx + edx + 0x60], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x4c]
mov dword [ecx + edx + 0x64], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x54]
mov dword [ecx + edx + 0x6c], eax
mov ecx, dword [esi + 0x588c]
test byte [ecx + ebp + 0x40], 0x10
je 0x579b9b
mov edx, dword [edi]
mov ecx, dword [esi + 0x704]
imul edx, edx, 0xb4
xor eax, eax
mov dword [edx + ecx + 0x38], eax
mov edx, dword [edi]
mov ecx, dword [esi + 0x704]
imul edx, edx, 0xb4
mov dword [edx + ecx + 0x28], eax
mov edx, dword [edi]
mov ecx, dword [esi + 0x704]
imul edx, edx, 0xb4
mov dword [edx + ecx + 0x30], eax
jmp 0x579c01
mov edx, dword [esi + 0x514]
mov eax, dword [esi + 0x504]
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx]
mov edx, dword [edi]
imul edx, edx, 0xb4
sub ecx, eax
mov eax, dword [esi + 0x704]
mov dword [edx + eax + 0x30], ecx
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
mov dword [ecx + edx + 0x28], eax
mov ecx, dword [edi]
mov eax, dword [esp + 0x80]
imul ecx, ecx, 0xb4
mov edx, dword [esi + 0x704]
mov eax, dword [eax]
mov dword [ecx + edx + 0x38], eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x80]
mov dword [eax], edx
mov edx, dword [ecx]
mov eax, dword [esp + 0x6c]
mov dword [eax], edx
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x18]
mov dword [ecx + edx + 0x74], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0xa0]
mov dword [ecx + edx + 0x78], eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
mov eax, dword [esp + 0x9c]
mov dword [ecx + edx + 0x70], eax
mov dword [ebp], eax
add dword [edi], 1
mov eax, dword [edi]
push eax
push esi
call fcn.004bba60
add esp, 8
test eax, eax
jne 0x579c8e
push 1
push str.Ran_Out_of_Text_Frame_Table__CreateFrames_4_
push esi
call fcn.004e7a10
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov edx, dword [ecx + eax - 0xa0]
add edx, dword [ecx + eax - 0x90]
add ecx, eax
cmp dword [esp + 0xb0], 0
mov dword [esp + 0x1c], edx
je 0x579fc4
mov ecx, dword [esi + 0x704]
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [eax + ecx - 0x8c]
add eax, ecx
mov ecx, dword [esp + 0x9c]
mov eax, dword [eax - 0x9c]
push ecx
push edi
push edx
mov edx, dword [esp + 0x64]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push ebp
push edx
push esi
call fcn.004bf300
mov eax, dword [esi + 0x5884]
mov ecx, dword [edi]
mov edx, dword [esp + 0x48]
mov dword [edx + eax + 0x44], ecx
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov dword [eax + ecx], 1
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [esp + 0x80]
mov dword [edx + eax + 0xa4], ecx
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [eax + edx - 0x9c]
add eax, edx
mov dword [eax + 0x18], ecx
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [eax + edx - 0x94]
add eax, edx
mov dword [eax + 0x20], ecx
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [esp + 0x44]
mov dword [edx + eax + 0x14], ecx
mov edx, dword [edi]
mov ecx, dword [esi + 0x704]
imul edx, edx, 0xb4
mov eax, dword [esp + 0xf8]
mov dword [edx + ecx + 0xa8], eax
mov edx, dword [edi]
mov ecx, dword [esi + 0x704]
imul edx, edx, 0xb4
add esp, 0x28
test ebx, ebx
mov dword [edx + ecx + 0x88], ebx
jle 0x579dea
mov ecx, dword [edi]
mov eax, dword [esi + 0x72c]
mov ebp, dword [esi + 0x704]
mov edx, ebx
imul edx, edx, 0x98
imul ecx, ecx, 0xb4
mov edx, dword [eax + edx + 0x4c]
mov eax, dword [esp + 0xd0]
mov dword [ecx + ebp + 0x9c], edx
mov edx, dword [edi]
mov ecx, dword [esp + 0xc0]
imul edx, edx, 0xb4
sub ecx, dword [esp + 0x1c]
mov ebp, dword [esi + 0x704]
add ecx, dword [esp + 0xc8]
add ecx, dword [esp + 0xcc]
cmp dword [esp + 0x58], 0
mov dword [edx + ebp + 0x24], ecx
jne 0x579ed8
test ebx, ebx
jle 0x579e50
mov edx, dword [edi]
imul eax, eax, 0xb4
mov ecx, dword [esi + 0x704]
imul edx, edx, 0xb4
add edx, ecx
add eax, ecx
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x54]
sub ecx, dword [edx + 0x14]
add ecx, dword [eax + 0x14]
mov dword [edx + 0x24], ecx
jmp 0x579ed8
cmp dword [esi + 0x654], 0
je 0x579ebb
mov eax, dword [esp + 0xbc]
cmp eax, 1
je 0x579e73
mov edx, dword [esp + 0x94]
add edx, 1
cmp edx, eax
jne 0x579ed8
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov edx, dword [eax + ecx - 0x74]
lea ebx, [eax + ecx]
imul edx, edx, 0x98
mov eax, dword [esi + 0x39c0]
fld dword [edx + eax + 8]
fimul dword [esi + 0x510]
call fcn.005ac350
mov ecx, dword [esp + 0xc4]
sub ecx, eax
sub ecx, dword [esi + 0x564]
sub ecx, dword [esp + 0x1c]
mov dword [ebx + 0x24], ecx
jmp 0x579ed8
mov edx, dword [edi]
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
or dword [edx + eax + 0x8c], 1
lea eax, [edx + eax + 0x8c]
mov ecx, dword [edi]
mov edx, dword [esi + 0x704]
imul ecx, ecx, 0xb4
cmp dword [ecx + edx + 0x24], 0
lea eax, [ecx + edx + 0x24]
jge 0x579ef7
mov dword [eax], 0
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov edx, dword [eax + ecx - 0x8c]
mov dword [eax + ecx + 0x28], edx
add eax, ecx
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov edx, dword [eax + ecx - 0x7c]
mov dword [eax + ecx + 0x38], edx
add eax, ecx
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov edx, dword [eax + ecx - 0x74]
mov dword [eax + ecx + 0x40], edx
add eax, ecx
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov edx, dword [eax + ecx - 0x48]
add eax, ecx
mov dword [eax + 0x6c], edx
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov edx, dword [eax + ecx - 0x44]
add eax, ecx
mov dword [eax + 0x70], edx
mov eax, dword [edi]
mov ecx, dword [esi + 0x704]
imul eax, eax, 0xb4
mov edx, dword [esp + 0xa0]
lea eax, [eax + ecx + 0x8c]
mov ecx, dword [esp + 0xac]
or ecx, 0x100000
or dword [eax], ecx
mov dword [edx], 0
add dword [edi], 1
mov edi, dword [edi]
push edi
push esi
call fcn.004bba60
add esp, 8
test eax, eax
jne 0x579fc4
push 1
push str.Ran_Out_of_Text_Frame_Table__CreateFrames_4_
push esi
call fcn.004e7a10
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x68]
add dword [ecx], eax
mov ecx, dword [esi + 0x514]
mov edx, dword [esi + 0x504]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x6c]
add dword [ecx], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret