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

Disassembly:
sub esp, 0x80
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
lea ebp, [ebx + 1]
push 0x5ecc18
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0
call fcn.004e4630
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov dword [edx], 0
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + eax*4]
add esp, 4
cmp dword [edx + 0x2c], 0
je 0x57ab20
cmp eax, dword [esi + 0x5e4]
push edi
mov edi, eax
jge 0x57a521
push edi
push esi
call fcn.005132c0
add esp, 8
cmp eax, ebx
je 0x57ab1c
push edi
push esi
call fcn.005132c0
add esp, 8
cmp eax, ebp
je 0x57a511
add edi, 1
cmp edi, dword [esi + 0x5e4]
jl 0x57a4d2
mov eax, dword [esi + 0x5e4]
pop edi
pop esi
pop ebp
sub eax, 1
pop ebx
add esp, 0x80
ret
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x57a535
mov eax, dword [esi + 0x5e4]
pop edi
pop esi
pop ebp
sub eax, 1
pop ebx
add esp, 0x80
ret
mov ecx, dword [esi + 0x588c]
imul eax, eax, 0x84
mov ebp, dword [eax + ecx + 0x58]
mov edx, dword [esi + 0x510]
mov ebx, ebp
imul ebx, ebx, 0x84
mov eax, dword [ebx + ecx + 0x2c]
push 0x5a0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x510]
mov edx, dword [esi + 0x588c]
push 0x5a0
mov edi, eax
mov eax, dword [ebx + edx + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
add dword [esp + 0xa8], edi
mov edx, dword [esi + 0x588c]
lea ecx, [edi + edi]
sub eax, ecx
mov dword [esp + 0x54], eax
lea eax, [ebx + edx]
xor edi, edi
cmp dword [eax + 0xc], edi
jg 0x57a5bf
cmp dword [eax + 0x54], edi
jle 0x57a5bf
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x5884]
imul eax, eax, 0x68
mov edx, dword [eax + ecx + 0x50]
add dword [esp + 0xa8], edx
mov ecx, dword [esp + 0xac]
lea eax, [esp + 0x80]
push eax
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x90]
push edx
push ebp
push esi
call fcn.004be780
imul ebp, ebp, 0x34
mov eax, dword [esi + 0x5890]
add esp, 0x20
test byte [eax + ebp + 0x10], 2
je 0x57a611
mov ecx, dword [esi + 0x588c]
mov edx, dword [ebx + ecx + 0x2c]
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x514]
mov ecx, dword [esp + 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x5a0
push eax
push ecx
call ebx
mov edx, dword [esi + 0x514]
mov ecx, dword [esi + 0x504]
push edx
push ecx
push eax
mov dword [esp + 0x30], eax
call ebx
mov edx, dword [esp + 0x34]
push edx
push esi
mov dword [esp + 0x38], eax
call fcn.004bba60
add esp, 8
test eax, eax
jne 0x57a665
push 1
push str.Ran_Out_of_Text_Frame_Table__CreateFrames_1_
push esi
call fcn.004e7a10
add esp, 0xc
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x20], eax
or eax, 0xffffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x98]
mov dword [esp + 0x68], eax
mov dword [esp + 0x2c], eax
push edi
push esi
call fcn.005132c0
add esp, 8
cmp eax, dword [esp + 0x1c]
jge 0x57a6ba
mov dword [esp + 0x18], 1
mov ecx, dword [esi + 0x5e4]
cmp edi, ecx
jge 0x57a6f4
cmp dword [esp + 0xd8], 3
jne 0x57a6f4
mov edx, dword [esi + 0x138]
mov eax, dword [edx + edi*4]
mov edx, dword [esp + 0xac]
cmp dword [eax + 0x34], edx
je 0x57a6f4
cmp dword [eax + 0x2c], 0
je 0x57a6f4
cmp dword [esp + 0x18], 0
je 0x57aafa
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
jge 0x57a704
mov eax, edi
mov dword [esp + 0x2c], edi
jmp 0x57a708
mov eax, dword [esp + 0x4c]
cmp edi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], ebx
jge 0x57a728
mov eax, dword [esi + 0x138]
mov edx, dword [eax + edi*4]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x44], eax
cmp edi, ecx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x3c], ebx
jge 0x57a750
cmp dword [esp + 0x18], 0
jne 0x57a750
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push esi
call fcn.00513250
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x57a76b
cmp dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
je 0x57a767
test ebp, ebp
je 0x57ab02
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x588c]
mov ecx, eax
imul ecx, ecx, 0x84
mov dword [esp + 0x70], ecx
mov ecx, dword [edx + ecx + 4]
mov dword [esp + 0x50], ecx
mov ecx, ebp
imul ecx, ecx, 0x84
cmp eax, ebp
mov edx, dword [ecx + edx + 4]
je 0x57a7a1
test ebp, ebp
je 0x57a7a1
mov dword [esp + 0x3c], 1
cmp dword [esp + 0x50], edx
je 0x57a7b4
test edx, edx
je 0x57a7b4
test ebp, ebp
je 0x57a7b4
mov ebx, 1
cmp dword [esp + 0x18], 0
je 0x57a7c2
mov ebx, 1
jmp 0x57a7d1
cmp dword [esp + 0x3c], 0
jne 0x57a7d1
test ebx, ebx
je 0x57a8e9
mov edx, dword [esp + 0xe0]
push edx
mov eax, dword [esp + 0xe0]
push eax
mov eax, dword [esp + 0x5c]
push eax
mov ecx, dword [esp + 0xb4]
push ecx
push eax
push 0
push 1
push eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x8c]
push edx
push ebx
push 0
push eax
mov eax, dword [esp + 0xe0]
push ecx
mov ecx, dword [esp + 0x104]
lea edx, [esp + 0x90]
push edx
mov edx, dword [esp + 0x104]
push ebp
push eax
mov eax, dword [esp + 0xec]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
push eax
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0xb4]
push eax
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0xc4]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x120]
lea edx, [esp + 0x78]
push edx
mov edx, dword [esp + 0x120]
lea eax, [esp + 0x80]
push eax
push ecx
mov ecx, dword [esp + 0x90]
push edx
lea eax, [esp + 0xac]
push eax
push ecx
push esi
call fcn.00578f60
xor edx, edx
add esp, 0x84
cmp ebx, edx
mov dword [esp + 0x2c], edi
jne 0x57a8b0
xor ecx, ecx
xor eax, eax
jmp 0x57a8b8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x6c]
add dword [esp + 0x30], ecx
add dword [esp + 0x20], eax
cmp ebx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
je 0x57a8df
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x18], edx
jne 0x57ab02
cmp edi, dword [esi + 0x5e4]
jge 0x57aafa
push edi
push esi
call fcn.005132c0
add esp, 8
cmp eax, dword [esp + 0x1c]
jle 0x57aa6e
mov eax, dword [esp + 0x98]
cmp eax, dword [esi + 0x5e4]
mov ebp, dword [esp + 0x20]
jge 0x57a9a5
mov edx, dword [esp + 0x1c]
push eax
push edx
push esi
call fcn.00513250
mov ecx, eax
add esp, 0xc
test ecx, ecx
mov dword [esp + 0x58], ecx
jle 0x57a9a5
mov eax, dword [esi + 0x588c]
mov edx, dword [esp + 0x70]
cmp dword [eax + edx + 0xc], 0
jle 0x57a9a5
mov ebx, dword [esi + 0x5884]
mov edx, ecx
imul edx, edx, 0x84
mov edx, dword [edx + eax + 4]
imul edx, edx, 0x68
mov ebx, dword [edx + ebx + 8]
test ebx, ebx
jle 0x57a9a5
jmp 0x57a974
mov ecx, dword [esp + 0x58]
cmp ebx, ecx
je 0x57a9a5
mov ecx, dword [esi + 0x510]
imul ebx, ebx, 0x84
mov edx, dword [ebx + eax + 0x14]
push 0x5a0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
add ebp, eax
mov eax, dword [esi + 0x588c]
mov ebx, dword [ebx + eax + 8]
test ebx, ebx
jg 0x57a970
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x3c]
add ecx, edx
add ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0x50]
add eax, ecx
add eax, dword [esp + 0xe0]
lea ecx, [esp + 0x6c]
push eax
mov eax, dword [esp + 0xdc]
push edx
push eax
mov eax, dword [esp + 0x54]
push ebp
push ecx
lea edx, [esp + 0x74]
push edx
push eax
push edi
push esi
call fcn.0057a460
mov ecx, dword [esi + 0x514]
mov edx, dword [esi + 0x504]
add esp, 0x50
push ecx
mov edi, eax
mov eax, dword [esp + 0x44]
add dword [esp + 0x18], eax
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
add dword [esp + 0x10], eax
add edi, 1
jmp 0x57a6a2
cmp edi, dword [esi + 0x5e4]
jge 0x57aafa
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xd4]
push eax
mov eax, dword [esp + 0xd4]
push ecx
mov ecx, dword [esp + 0xd4]
push edx
mov edx, dword [esp + 0xd4]
push eax
mov eax, dword [esp + 0xd4]
push ecx
mov ecx, dword [esp + 0xd4]
push edx
mov edx, dword [esp + 0xd4]
push eax
mov eax, dword [esp + 0xc8]
push ecx
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x70]
push ecx
push edx
push eax
mov eax, dword [esp + 0xec]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0xec]
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
push edi
push esi
call fcn.00550350
add esp, 0x4c
add edi, 1
jmp 0x57a6a2
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [eax], edx
mov edx, dword [esp + 0x24]
mov dword [ecx], edx
lea eax, [edi - 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret