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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [ebp + 8]
push ebx
push esi
cmp eax, 0x190
push edi
mov dword [esp + 0x10], ecx
jg 0x57a075
mov eax, 0x190
mov dword [ebp + 8], eax
lea edi, [eax*8 + 2]
cmp edi, 0x64
jg 0x57a086
mov edi, 0x64
lea eax, [edi*8]
mov dword [esp + 0x3c], edi
push eax
call fcn.0076d5a7
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x57a0ad
lea ecx, [edi - 1]
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], ecx
jmp 0x57a0b1
mov dword [esp + 0x28], ebx
push 0x14
call fcn.0076d5a7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x57a0fd
lea edx, [edi*4 + 4]
mov dword [esi + 0xc], ebx
push edx
mov dword [esi + 0x10], 0xffffffff
mov dword [esi], ebx
mov dword [esi + 4], edi
call fcn.0076d5a7
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
add esp, 4
xor eax, eax
cmp ecx, ebx
jl 0x57a0ff
mov ecx, dword [esi + 8]
inc eax
mov dword [ecx + eax*4 - 4], ebx
mov ecx, dword [esi + 4]
cmp eax, ecx
jle 0x57a0ec
jmp 0x57a0ff
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp eax, ebx
jne 0x57a27c
cmp dword [ecx + 4], ebx
jne 0x57a27c
mov dword [esp + 0x24], ebx
mov edx, dword [0x81a8f0]
mov dword [esp + 0x74], 0
lea ebx, [edx - 1]
lea eax, [ebx + 1]
mov dword [esp + 0x70], eax
fild qword [esp + 0x70]
fstp qword [esp + 0x88]
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0
fild qword [esp + 0x68]
fmul qword [esp + 0x88]
fmul qword [0x790db8]
call fcn.0076a6b0
mov edi, eax
cmp edi, ebx
ja 0x57a13c
mov ecx, dword [0x81a8f4]
mov dword [esp + 0x4c], 0
lea ebx, [ecx - 1]
lea edx, [ebx + 1]
mov dword [esp + 0x48], edx
fild qword [esp + 0x48]
fstp qword [esp + 0x88]
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
fild qword [esp + 0x40]
fmul qword [esp + 0x88]
fmul qword [0x790db8]
call fcn.0076a6b0
cmp eax, ebx
ja 0x57a191
mov dx, word [0x81a8f0]
mov ecx, edi
neg ecx
mov word [esp + 0x52], cx
mov word [esp + 0x5a], dx
mov ecx, dword [esp + 0x5a]
mov edx, dword [esp + 0x52]
inc edi
add ecx, edx
mov word [esp + 0x60], di
mov word [esp + 0x62], cx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x62]
add ecx, eax
add eax, edx
mov word [esp + 0x34], cx
mov word [esp + 0x36], ax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x24]
inc edx
cmp edx, 0xc8
mov dword [esp + 0x24], edx
jge 0x57a271
mov edx, dword [0xa5861c]
test edx, edx
je 0x57a119
movsx eax, ax
imul eax, dword [0x836b2c]
movsx ecx, cx
add eax, ecx
lea eax, [eax + eax*4]
shl eax, 4
mov ecx, dword [eax + edx + 0x38]
test ecx, ecx
jne 0x57a119
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x81a800
call fcn.005453b0
mov ecx, eax
call fcn.0047b3e0
test al, al
je 0x57a119
cmp dword [esp + 0x24], 0xc8
jl 0x57a292
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov dx, word [ecx + 4]
mov word [esp + 0x34], ax
mov word [esp + 0x36], dx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [0xa57c78]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov ecx, dword [eax]
cmp ecx, edx
jne 0x57a2d8
mov edx, dword [eax + 4]
mov ecx, dword [0xa57c7c]
cmp edx, ecx
jne 0x57a2d8
mov ecx, dword [eax + 8]
mov edx, dword [0xa57c80]
cmp ecx, edx
jne 0x57a2d8
mov edx, dword [eax + 0xc]
mov ecx, dword [0xa57c84]
cmp edx, ecx
je 0x57a320
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], eax
jle 0x57a306
fild dword [esp + 0x24]
mov dword [esp + 0x30], 0x3f800000
fidiv dword [esp + 0x34]
fmul qword [0x788da8]
fstp dword [esp + 0x2c]
jmp 0x57a320
fild dword [esp + 0x34]
mov dword [esp + 0x2c], 0x3f800000
fidiv dword [esp + 0x24]
fmul qword [0x788da8]
fstp dword [esp + 0x30]
movsx eax, word [esp + 0x14]
movsx ecx, word [esp + 0x16]
mov dword [esp + 0x48], eax
mov edx, dword [esi]
fild dword [esp + 0x48]
mov dword [esp + 0x48], ecx
xor ecx, ecx
xor eax, eax
cmp edx, ecx
fstp qword [esp + 0x68]
fild dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
fstp qword [esp + 0x70]
jl 0x57a35e
mov edx, dword [esi + 8]
inc eax
mov dword [edx + eax*4 - 4], ecx
mov edx, dword [esi]
cmp eax, edx
jle 0x57a350
mov edi, dword [esp + 0x28]
mov dword [esi], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 1
mov dword [edi], eax
mov dword [edi + 4], ecx
movsx eax, word [esp + 0x16]
imul eax, dword [0x836b2c]
movsx ecx, word [esp + 0x14]
add eax, ecx
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x10]
shl edx, 4
mov ecx, dword [eax + 0x308]
mov eax, dword [0xa5861c]
mov dword [edx + eax + 0x3c], ecx
mov ecx, dword [esi]
mov eax, dword [edi + 4]
inc ecx
mov edx, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 4]
shr edx, 1
cmp ecx, eax
jae 0x57a3fb
cmp ecx, 1
jbe 0x57a3de
mov ebx, dword [esi + 8]
mov eax, dword [ebx + edx*4]
fld dword [eax + 4]
fcomp dword [esp + 0x48]
fnstsw ax
test ah, 0x41
jne 0x57a3de
mov eax, dword [ebx + edx*4]
mov dword [ebx + ecx*4], eax
mov ecx, edx
shr edx, 1
cmp ecx, 1
ja 0x57a3bb
mov edx, dword [esi + 8]
mov dword [edx + ecx*4], edi
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
inc ecx
cmp edi, eax
mov dword [esi], ecx
jbe 0x57a3f3
mov dword [esi + 0xc], edi
cmp edi, dword [esi + 0x10]
jae 0x57a3fb
mov dword [esi + 0x10], edi
mov ecx, dword [esi]
test ecx, ecx
jne 0x57a405
xor edi, edi
jmp 0x57a42b
mov eax, dword [esi + 8]
push 1
mov ecx, dword [eax + ecx*4]
mov edi, dword [eax + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + edx*4], 0
mov ecx, dword [esi]
dec ecx
mov dword [esi], ecx
mov ecx, esi
call fcn.0058bd40
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edi
fild dword [eax + 8]
fmul qword [0x785728]
fld st(0)
fmul st(1)
fdivr qword [0x785708]
fstp qword [esp + 0x80]
fstp st(0)
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
test eax, eax
fmul qword [0x785728]
fld st(0)
fmul st(1)
fdivr qword [0x785708]
fstp qword [esp + 0x78]
fstp st(0)
jle 0x57a7c2
test edi, edi
je 0x57a7c2
mov ecx, dword [0xa5861c]
test ecx, ecx
je 0x57a4a8
movsx eax, word [edi + 2]
imul eax, dword [0x836b2c]
movsx edx, word [edi]
add eax, edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x308]
lea eax, [eax + eax*4]
shl eax, 4
mov dword [eax + ecx + 0x38], edx
push edi
mov ecx, 0x81a800
call fcn.005453b0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [eax + 0x38], 0
mov ebx, dword [0xa58614]
xor eax, eax
lea ecx, [ecx + edx*8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ecx
jmp 0x57a4db
mov edi, dword [esp + 0x24]
and eax, 7
lea ecx, [eax*4 + 0x839d80]
mov ax, word [eax*4 + 0x839d80]
mov cx, word [ecx + 2]
add ax, word [edi]
add cx, word [edi + 2]
mov word [esp + 0x38], ax
mov word [esp + 0x3a], cx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], edx
movsx edx, ax
movsx eax, cx
lea ecx, [eax + edx]
cmp ecx, ebx
jle 0x57a738
mov edi, edx
sub edi, eax
cmp edi, ebx
jge 0x57a738
mov edi, eax
sub edi, edx
cmp edi, ebx
jge 0x57a738
cmp ecx, dword [0xa58618]
jg 0x57a738
imul eax, dword [0x836b2c]
mov ecx, dword [0xa5861c]
add eax, edx
lea edi, [eax + eax*4]
shl edi, 4
add edi, ecx
mov eax, dword [edi + 0x38]
test eax, eax
jne 0x57a738
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x3c]
cmp eax, dword [ecx + 0x308]
je 0x57a738
lea edx, [esp + 0x18]
mov ecx, 0x81a800
push edx
call fcn.005453b0
mov ecx, eax
call fcn.0047b3e0
test al, al
je 0x57a732
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jge 0x57a732
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00579f40
test al, al
je 0x57a732
fld qword [esp + 0x68]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
fadd qword [0x785728]
mov dword [ebx], edx
call fcn.0076a6b0
fld qword [esp + 0x70]
fadd qword [0x785728]
mov word [esp + 0x34], ax
call fcn.0076a6b0
mov word [esp + 0x36], ax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x50], ecx
mov cl, byte [ebp + 0x24]
test cl, cl
je 0x57a642
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00579dd0
jmp 0x57a6b1
movsx edx, word [esp + 0x34]
movsx ecx, word [esp + 0x18]
sub ecx, edx
sub esp, 8
movsx edx, ax
movsx eax, word [esp + 0x22]
sub eax, edx
mov edx, ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
fstp qword [esp]
call fcn.004b9f30
fstp qword [esp + 0x68]
add esp, 8
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
fild qword [esp + 0x88]
fmul qword [0x790d28]
fmul qword [0x790db8]
fadd qword [esp + 0x60]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
fstp dword [ebx + 4]
mov eax, dword [edx + 0x308]
inc ecx
mov dword [edi + 0x3c], eax
mov eax, ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esi]
mov edi, dword [eax + 4]
add ebx, 8
inc ecx
mov dword [esp + 0x58], edi
mov edi, dword [esi + 4]
mov edx, ecx
shr edx, 1
cmp ecx, edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x40], ebx
jae 0x57a732
cmp ecx, 1
jbe 0x57a715
mov edi, dword [esi + 8]
mov ebx, dword [edi + edx*4]
fld dword [ebx + 4]
fcomp dword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x57a711
mov dword [edi + ecx*4], ebx
mov ecx, edx
shr edx, 1
cmp ecx, 1
ja 0x57a6f1
mov eax, dword [esp + 0x60]
mov edx, dword [esi + 8]
mov dword [edx + ecx*4], eax
mov edx, dword [esi]
mov ecx, dword [esi + 0xc]
inc edx
cmp eax, ecx
mov dword [esi], edx
jbe 0x57a72a
mov dword [esi + 0xc], eax
cmp eax, dword [esi + 0x10]
jae 0x57a732
mov dword [esi + 0x10], eax
mov ebx, dword [0xa58614]
mov eax, dword [esp + 0x48]
add eax, 2
cmp eax, 8
mov dword [esp + 0x48], eax
jl 0x57a4d7
mov ecx, 0xa57948
call fcn.005764d0
fmul qword [ebp + 0x1c]
mov ecx, 0xa57948
fadd qword [esp + 0x68]
fstp qword [esp + 0x68]
call fcn.005764d0
fmul qword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
inc ecx
fadd qword [esp + 0x70]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
test ecx, ecx
fstp qword [esp + 0x70]
jne 0x57a789
xor edi, edi
jmp 0x57a7af
mov eax, dword [esi + 8]
push 1
mov ecx, dword [eax + ecx*4]
mov edi, dword [eax + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + edx*4], 0
mov ecx, dword [esi]
dec ecx
mov dword [esi], ecx
mov ecx, esi
call fcn.0058bd40
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
cmp ecx, eax
mov dword [esp + 0x24], edi
jl 0x57a472
mov ecx, dword [esi]
test ecx, ecx
je 0x57a88c
mov eax, dword [esi + 8]
push 1
mov edx, dword [eax + ecx*4]
mov edi, dword [eax + 4]
mov dword [eax + 4], edx
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov dword [ecx + eax*4], 0
mov edx, dword [esi]
dec edx
mov ecx, esi
mov dword [esi], edx
call fcn.0058bd40
test edi, edi
je 0x57a88c
push edi
mov ecx, 0x81a800
call fcn.005453b0
mov ebx, eax
mov ecx, dword [0xa5861c]
movsx eax, word [edi + 2]
imul eax, dword [0x836b2c]
movsx edx, word [edi]
add eax, edx
lea edi, [eax + eax*4]
shl edi, 4
add edi, ecx
mov eax, dword [edi + 0x38]
test eax, eax
jne 0x57a84b
mov ecx, ebx
call fcn.0047b3e0
test al, al
je 0x57a84b
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x38], 0
mov ecx, dword [eax + 0x308]
mov dword [edi + 0x38], ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x57a855
xor edi, edi
jmp 0x57a87b
mov eax, dword [esi + 8]
push 1
mov edx, dword [eax + ecx*4]
mov edi, dword [eax + 4]
mov dword [eax + 4], edx
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov dword [ecx + eax*4], 0
mov ecx, dword [esi]
dec ecx
mov dword [esi], ecx
mov ecx, esi
call fcn.0058bd40
mov ecx, dword [esp + 0x1c]
inc ecx
test edi, edi
mov dword [esp + 0x1c], ecx
jne 0x57a7fa
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
push edx
call fcn.0076d2d5
xor edi, edi
add esp, 4
cmp esi, edi
je 0x57a8b5
mov eax, dword [esi + 8]
push eax
call fcn.0076d2d5
push esi
call fcn.0076d2d5
add esp, 8
mov ecx, dword [ebx + 0x308]
push 1
push ecx
mov ecx, 0x81a800
call fcn.00558f60
mov ecx, 0x81a800
mov byte [esp + 0xf], al
call fcn.005571f0
mov ecx, 0x81a800
call fcn.00557130
cmp eax, edi
je 0x57a910
mov ecx, dword [eax + 0x38]
mov edx, dword [0xa5478c]
cmp ecx, edx
jl 0x57a902
add edx, 0x2a
cmp ecx, edx
jge 0x57a902
mov dword [eax + 0x38], edi
mov byte [eax + 0x11a], 0
mov ecx, 0x81a800
call fcn.00557130
cmp eax, edi
jne 0x57a8e4
mov al, byte [esp + 0xf]
test al, al
jne 0x57a9a5
mov esi, dword [0xa3a198]
mov edi, dword [ebx + 0x308]
mov ecx, 0x81a800
call fcn.005571f0
mov ecx, 0x81a800
call fcn.00557130
test eax, eax
je 0x57a99a
mov edx, dword [eax + 0x24]
mov dword [esp + 0x60], edx
movsx ecx, word [esp + 0x62]
imul ecx, dword [0x836b2c]
movsx edx, dx
add ecx, edx
mov edx, dword [0xa5861c]
lea ecx, [ecx + ecx*4]
shl ecx, 4
add ecx, edx
cmp dword [ecx + 0x38], edi
jne 0x57a98c
mov dword [ecx + 0x38], 0
mov byte [ecx + 0x4b], 0
mov dword [eax + 0x38], esi
mov byte [eax + 0x11a], 0
mov ecx, dword [ebx + 0x30c]
mov byte [eax + 0x11b], cl
mov ecx, 0x81a800
call fcn.00557130
test eax, eax
jne 0x57a940
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebx + 0x308]
mov eax, dword [esp + 0x1c]
inc ecx
pop edi
mov dword [ebx + 0x308], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20