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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov al, byte [ebp + 0x14]
push ebx
mov byte [esp + 0x1f], al
mov eax, dword [ebp + 8]
xor ebx, ebx
push esi
cmp word [eax], bx
push edi
mov dword [esp + 0x3c], ecx
mov byte [esp + 0xf], 1
mov dword [esp + 0x4c], ebx
jne 0x57bc7b
cmp word [eax + 2], bx
jne 0x57bc7b
mov eax, dword [0x81a8f0]
mov ecx, dword [0x81a8f4]
mov word [esp + 0xa2], ax
mov word [esp + 0x28], ax
neg eax
mov word [esp + 0x50], cx
mov word [esp + 0x52], cx
mov word [esp + 0x2a], ax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2a]
mov eax, dword [esp + 0xa2]
inc ecx
add edx, eax
mov word [esp + 0x60], cx
mov ecx, dword [esp + 0x50]
mov word [esp + 0x62], dx
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x62]
add edx, ecx
mov ecx, dword [esp + 0x52]
mov word [esp + 0x28], dx
add eax, ecx
mov word [esp + 0x2a], ax
mov edx, dword [esp + 0x28]
add edx, 0xfffffffe
mov word [esp + 0x60], dx
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
fild qword [esp + 0x18]
fmul qword [0x790f68]
call fcn.0076a6b0
cmp eax, 3
mov dword [esp + 0x58], eax
ja 0x57ba4a
mov eax, dword [0x81a8f0]
mov dword [esp + 0x1c], ebx
lea edi, [eax - 1]
lea ecx, [edi + 1]
mov dword [esp + 0x18], ecx
fild qword [esp + 0x18]
fstp qword [esp + 0x90]
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
fild qword [esp + 0x18]
fmul qword [esp + 0x90]
fmul qword [0x790db8]
call fcn.0076a6b0
mov esi, eax
cmp esi, edi
ja 0x57ba92
mov edx, dword [0x81a8f4]
mov dword [esp + 0x1c], ebx
lea edi, [edx - 1]
lea eax, [edi + 1]
mov dword [esp + 0x18], eax
fild qword [esp + 0x18]
fstp qword [esp + 0x90]
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
fild qword [esp + 0x18]
fmul qword [esp + 0x90]
fmul qword [0x790db8]
call fcn.0076a6b0
cmp eax, edi
ja 0x57badf
fild dword [esp + 0x58]
mov edi, dword [esp + 0xa2]
mov ecx, esi
neg ecx
fmul qword [0x786630]
lea edx, [esi + 1]
mov word [esp + 0x52], cx
mov word [esp + 0x14], dx
mov edx, dword [esp + 0x52]
fsubr qword [0x790f60]
add edx, edi
mov dword [esp + 0x98], 0x382d7365
mov word [esp + 0x16], dx
mov edx, dword [esp + 0x14]
fld st(0)
fadd qword [0x787a80]
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0x60]
mov edi, edx
sub edx, esi
sub edi, eax
mov dword [esp + 0x9c], 0x3fe0c152
fstp qword [esp + 0xa8]
mov word [esp + 0x14], di
mov edi, dword [esp + 0x2a]
fld st(0)
fsub qword [0x787a80]
mov ebx, edi
mov word [esp + 0x2a], cx
mov ecx, dword [esp + 0x2a]
sub ebx, eax
mov word [esp + 0x16], bx
mov ebx, dword [esp + 0x14]
fstp qword [esp + 0x30]
sub edi, ecx
mov word [esp + 0x14], dx
fst qword [esp + 0x18]
mov word [esp + 0x16], di
mov ecx, dword [esp + 0x14]
fld st(0)
fsub qword [0x790f58]
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0xa2]
lea edx, [eax + 1]
add eax, ecx
fcomp qword [esp + 0xa8]
mov word [esp + 0x14], dx
mov word [esp + 0x16], ax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xdc], edx
mov ecx, dword [esp + eax*4 + 0xd0]
fnstsw ax
mov dword [esp + 0x74], ecx
test ah, 0x41
je 0x57bc1e
fadd qword [0x790f58]
fcomp qword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x57bc44
jmp 0x57bc20
fstp st(0)
fld qword [esp + 0xa8]
fsub qword [esp + 0x30]
fmul qword [0x785728]
fst qword [esp + 0x98]
fadd qword [esp + 0x30]
fstp qword [esp + 0x18]
jmp 0x57bc44
fstp st(0)
mov ecx, 0xa57948
call fcn.005764d0
fmul qword [esp + 0x98]
fadd qword [esp + 0x18]
fcom qword [esp + 0x30]
fnstsw ax
test ah, 1
jne 0x57bc42
fcom qword [esp + 0xa8]
fnstsw ax
test ah, 0x41
je 0x57bc42
fstp qword [esp + 0xb8]
jmp 0x57bc95
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x74], edx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
movsx ecx, word [esp + 0x74]
movsx eax, word [esp + 0x76]
mov edx, dword [0xa58614]
xor edi, edi
lea esi, [eax + ecx]
cmp esi, edx
jle 0x57cab7
mov ebx, ecx
sub ebx, eax
cmp ebx, edx
jge 0x57cab7
sub eax, ecx
cmp eax, edx
jge 0x57cab7
cmp esi, dword [0xa58618]
jg 0x57cab7
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], edi
fild dword [edx + 0x4c]
fmul qword [0x790f50]
fld qword [0x785708]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x57bcfc
fstp st(0)
fld qword [0x785708]
call fcn.0076a6b0
mov esi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
fild qword [esp + 0x18]
fstp qword [esp + 0x90]
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
fild qword [esp + 0x18]
fmul qword [esp + 0x90]
fmul qword [0x790db8]
fadd qword [0x785708]
call fcn.0076a6b0
cmp eax, esi
ja 0x57bd16
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
fild qword [esp + 0x18]
fst qword [esp + 0x98]
fld st(0)
call fcn.0076a6b0
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fld st(0)
fadd st(2)
fstp qword [esp + 0x120]
fxch st(1)
fsub st(1)
fstp qword [esp + 0xd0]
fstp st(0)
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
fild qword [esp + 0x18]
fmul qword [0x790f48]
fadd qword [0x790f40]
call fcn.0076a6b0
cmp eax, 0x7d
mov dword [esp + 0x28], eax
ja 0x57bd87
movsx eax, word [esp + 0x74]
movsx ecx, word [esp + 0x76]
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0xb8]
fild dword [esp + 0x50]
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0xbc]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x88], edx
fadd qword [0x785728]
mov dword [esp + 0x8c], eax
fstp qword [esp + 0xb0]
fild dword [esp + 0x50]
fadd qword [0x785728]
fstp qword [esp + 0xc0]
fld qword [esp + 0xb8]
fadd qword [0x786630]
fstp qword [esp + 0x128]
fld qword [esp + 0xb8]
fsub qword [0x786630]
fstp qword [esp + 0x118]
fld qword [0x785708]
fld qword [esp + 0xb0]
call fcn.0076a6b0
fld qword [esp + 0xc0]
mov si, ax
call fcn.0076a6b0
movsx ecx, si
mov esi, dword [0xa58614]
movsx eax, ax
lea edx, [eax + ecx]
cmp edx, esi
jle 0x57c638
mov edi, ecx
sub edi, eax
cmp edi, esi
jge 0x57c638
sub eax, ecx
cmp eax, esi
jge 0x57c638
cmp edx, dword [0xa58618]
jg 0x57c638
mov al, byte [esp + 0xf]
test al, al
je 0x57c638
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x88]
push esi
push edi
fstp st(0)
call fcn.004b9ff0
fstp qword [esp + 0x88]
push esi
push edi
call fcn.004b9fa0
fstp qword [esp + 0x50]
fld qword [esp + 0xa8]
fadd qword [0x785728]
add esp, 0x10
call fcn.0076a6b0
lea ecx, [eax - 1]
mov byte [esp + 0x13], 1
mov dword [esp + 0x78], ecx
mov byte [esp + 0x10], 1
fild dword [esp + 0x78]
test eax, eax
fld st(0)
fmul qword [esp + 0x40]
fmul qword [0x785728]
fstp qword [esp + 0x100]
fld qword [esp + 0xb0]
fsub qword [esp + 0x100]
fstp qword [esp + 0x68]
fmul qword [esp + 0x80]
fmul qword [0x785728]
fstp qword [esp + 0x110]
fld qword [esp + 0xc0]
fsub qword [esp + 0x110]
fstp qword [esp + 0x30]
jle 0x57c10d
mov esi, dword [0xa5861c]
mov dword [esp + 0x78], eax
fld qword [esp + 0x68]
call fcn.0076a6b0
fld qword [esp + 0x30]
mov di, ax
call fcn.0076a6b0
mov word [esp + 0x58], ax
movsx ecx, di
movsx eax, ax
lea edx, [eax + ecx]
cmp edx, dword [0xa58614]
jle 0x57c0ab
mov ebx, ecx
sub ebx, eax
cmp ebx, dword [0xa58614]
jge 0x57c0a7
sub eax, ecx
mov ecx, dword [0xa58614]
cmp eax, ecx
jge 0x57c0a7
cmp edx, dword [0xa58618]
jg 0x57c0a7
mov bx, word [esp + 0x58]
mov cx, di
mov ax, bx
mov word [esp + 0xe4], cx
mov word [esp + 0xe6], ax
mov edx, dword [esp + 0xe4]
test esi, esi
mov dword [esp + 0x58], edx
je 0x57c00f
movsx eax, ax
imul eax, dword [0x836b2c]
movsx ecx, cx
add eax, ecx
lea edx, [eax + eax*4]
shl edx, 4
mov eax, dword [edx + esi + 0x38]
test eax, eax
jne 0x57c00b
lea eax, [esp + 0x58]
mov ecx, 0x81a800
push eax
call fcn.005453b0
mov ecx, eax
call fcn.0047b190
mov esi, dword [0xa5861c]
test al, al
jne 0x57c03d
test esi, esi
jne 0x57c014
or eax, 0xffffffff
jmp 0x57c031
movsx eax, word [esp + 0x5a]
imul eax, dword [0x836b2c]
movsx ecx, word [esp + 0x58]
add eax, ecx
lea edx, [eax + eax*4]
shl edx, 4
mov eax, dword [edx + esi + 0x38]
mov ecx, dword [esp + 0x3c]
cmp eax, dword [ecx + 0x308]
jne 0x57c0a2
test esi, esi
je 0x57c068
movsx eax, word [esp + 0x5a]
imul eax, dword [0x836b2c]
movsx edx, word [esp + 0x58]
mov ecx, dword [esp + 0x3c]
add eax, edx
mov edx, dword [ecx + 0x308]
lea eax, [eax + eax*4]
shl eax, 4
mov dword [eax + esi + 0x38], edx
lea eax, [esp + 0xcc]
mov ecx, 0x81a800
push eax
mov word [esp + 0xd0], di
mov word [esp + 0xd2], bx
call fcn.005453b0
mov ecx, dword [0xa3a198]
mov byte [eax + 0x11a], 0
mov dword [eax + 0x38], ecx
mov esi, dword [0xa5861c]
jmp 0x57c0a7
mov byte [esp + 0xf], 0
mov ebx, dword [esp + 0x3c]
fld qword [esp + 0x68]
fadd qword [esp + 0x40]
fld st(0)
call fcn.0076a6b0
fld qword [esp + 0x68]
mov edi, eax
call fcn.0076a6b0
cmp eax, edi
je 0x57c0ce
mov byte [esp + 0x13], 0
fld qword [esp + 0x30]
fadd qword [esp + 0x80]
fld st(0)
call fcn.0076a6b0
fld qword [esp + 0x30]
mov edi, eax
call fcn.0076a6b0
cmp eax, edi
je 0x57c0f4
mov byte [esp + 0x10], 0
mov eax, dword [esp + 0x78]
fxch st(1)
fstp qword [esp + 0x68]
dec eax
fstp qword [esp + 0x30]
mov dword [esp + 0x78], eax
jne 0x57bf49
fld qword [esp + 0x80]
fabs
fld qword [esp + 0x40]
fabs
fcompp
fnstsw ax
test ah, 1
je 0x57c12c
mov byte [esp + 0x10], 0
jmp 0x57c131
mov byte [esp + 0x13], 0
mov al, byte [ebp + 0x14]
test al, al
jne 0x57c2a8
mov al, byte [esp + 0x13]
test al, al
jne 0x57c150
mov al, byte [esp + 0x10]
test al, al
je 0x57c2a8
cmp dword [esp + 0x4c], 1
jge 0x57c2a8
fld qword [esp + 0x88]
fsub qword [esp + 0xb8]
call fcn.0076a6b0
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x78], eax
fild dword [esp + 0x78]
fcomp qword [0x787a80]
fnstsw ax
test ah, 1
je 0x57c2a8
mov al, byte [ebx + 0x310]
test al, al
je 0x57c2a8
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
cmp edx, eax
jle 0x57c2a8
mov al, byte [esp + 0x13]
test al, al
je 0x57c1d4
fld qword [esp + 0x80]
fcomp qword [0x786610]
fnstsw ax
test ah, 0x41
jne 0x57c1cd
mov esi, 2
jmp 0x57c1ee
mov esi, 6
jmp 0x57c1ee
fld qword [esp + 0x40]
fcomp qword [0x786610]
fnstsw ax
test ah, 0x41
jne 0x57c1e9
xor esi, esi
jmp 0x57c1ee
mov esi, 4
fld qword [esp + 0x68]
fsub qword [esp + 0x40]
mov byte [esp + 0x10], 0
call fcn.0076a6b0
fld qword [esp + 0x30]
fsub qword [esp + 0x80]
mov word [esp + 0xe0], ax
call fcn.0076a6b0
fld qword [esp + 0xb0]
fsub qword [esp + 0x100]
mov word [esp + 0xe2], ax
call fcn.0076a6b0
fld qword [esp + 0xc0]
fsub qword [esp + 0x110]
mov word [esp + 0xa0], ax
call fcn.0076a6b0
mov word [esp + 0xa2], ax
lea eax, [esp + 0xc0]
lea ecx, [esp + 0xb0]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov edx, dword [ebx + 0x308]
lea eax, [esp + 0xec]
push esi
lea ecx, [esp + 0xb0]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.0057cbd0
mov al, byte [esp + 0x10]
test al, al
je 0x57c2a8
mov ecx, dword [ebx + 0x308]
mov eax, dword [esp + 0x4c]
inc ecx
inc eax
mov dword [ebx + 0x308], ecx
mov dword [esp + 0x4c], eax
fld qword [esp + 0x80]
fadd qword [esp + 0xb0]
mov ecx, 0xa581b8
fstp qword [esp + 0xb0]
fld qword [esp + 0xc0]
fsub qword [esp + 0x40]
fstp qword [esp + 0xc0]
call fcn.0062fc90
xor esi, esi
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], esi
fild qword [esp + 0x108]
fmul qword [0x790db8]
fcomp qword [0x787518]
fnstsw ax
test ah, 1
je 0x57c436
mov al, byte [esp + 0xf]
test al, al
je 0x57c436
mov al, byte [ebp + 0x14]
test al, al
jne 0x57c436
cmp dword [esp + 0x4c], esi
jne 0x57c436
fld qword [esp + 0x88]
fadd qword [0x786630]
mov byte [ebp + 0x14], 1
mov dword [esp + 0xf0], 0x382d7365
mov dword [esp + 0xf4], 0x3fe0c152
fstp qword [esp + 0x40]
fld qword [esp + 0x88]
fadd qword [0x790f58]
fstp qword [esp + 0x80]
fld qword [esp + 0x88]
fadd qword [0x790f38]
fstp qword [esp + 0x58]
fld qword [esp + 0x40]
fsub qword [0x790f58]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
je 0x57c3a5
fld qword [esp + 0x40]
fadd qword [0x790f58]
fcomp qword [esp + 0x80]
fnstsw ax
test ah, 1
je 0x57c3c8
fld qword [esp + 0x58]
fsub qword [esp + 0x80]
fmul qword [0x785728]
fst qword [esp + 0xf0]
fadd qword [esp + 0x80]
fstp qword [esp + 0x40]
mov ecx, 0xa57948
call fcn.005764d0
fmul qword [esp + 0xf0]
fadd qword [esp + 0x40]
fst qword [esp + 0x78]
fcomp qword [esp + 0x80]
fnstsw ax
test ah, 1
jne 0x57c3c8
fld qword [esp + 0x78]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
je 0x57c3c8
fld qword [esp + 0x68]
call fcn.0076a6b0
fld qword [esp + 0x30]
mov word [esp + 0x50], ax
call fcn.0076a6b0
mov ecx, dword [esp + 0x78]
mov word [esp + 0x52], ax
mov eax, dword [esp + 0x7c]
push 1
push eax
lea edx, [esp + 0x58]
push ecx
push edx
mov ecx, ebx
call fcn.0057b9a0
mov byte [esp + 0xf], al
cmp dword [esp + 0x14], 5
jle 0x57c51b
fld qword [esp + 0x128]
fsub qword [esp + 0x88]
mov dword [esp + 0xe8], 0x769cf0e0
mov dword [esp + 0xec], 0x3fd41b2f
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
fstp qword [esp + 0x68]
fld qword [esp + 0x118]
fsub qword [esp + 0x88]
fstp qword [esp + 0x30]
fld qword [0x790f30]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x41
je 0x57c4b3
fld qword [0x78c108]
fcomp qword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x57c4d3
fld qword [esp + 0x68]
fsub qword [esp + 0x30]
fmul qword [0x785728]
fst qword [esp + 0xe8]
fadd qword [esp + 0x30]
fstp qword [esp + 0xf8]
mov ecx, 0xa57948
call fcn.005764d0
fmul qword [esp + 0xe8]
fadd qword [esp + 0xf8]
fst qword [esp + 0x40]
fcomp qword [esp + 0x30]
fnstsw ax
test ah, 1
jne 0x57c4d3
fld qword [esp + 0x40]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x41
je 0x57c4d3
fld qword [esp + 0x40]
fadd qword [esp + 0x88]
fstp qword [esp + 0x88]
cmp dword [esp + 0x60], esi
jle 0x57c5f3
fld qword [esp + 0x120]
fsub qword [esp + 0x98]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0x3fe00000
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
fstp qword [esp + 0x68]
fld qword [esp + 0xd0]
fsub qword [esp + 0x98]
fstp qword [esp + 0x30]
fld qword [0x7879b0]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x41
je 0x57c591
fld qword [0x785728]
fcomp qword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x57c5ae
fld qword [esp + 0x68]
fsub qword [esp + 0x30]
fmul qword [0x785728]
fst qword [esp + 0xa8]
fadd qword [esp + 0x30]
fstp qword [esp + 0x18]
mov ecx, 0xa57948
call fcn.005764d0
fmul qword [esp + 0xa8]
fadd qword [esp + 0x18]
fst qword [esp + 0x40]
fcomp qword [esp + 0x30]
fnstsw ax
test ah, 1
jne 0x57c5ae
fld qword [esp + 0x40]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x41
je 0x57c5ae
fld qword [esp + 0x40]
fadd qword [esp + 0x98]
fstp qword [esp + 0x98]
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], esi
fild qword [esp + 0x90]
mov eax, dword [esp + 0x14]
inc eax
fmul qword [0x790db8]
mov dword [esp + 0x14], eax
fcom qword [0x788170]
fnstsw ax
test ah, 1
je 0x57be39
mov esi, dword [0xa58614]
cmp dword [esp + 0x14], 0x28
jge 0x57c644
mov byte [esp + 0xf], 0
fcomp qword [0x788170]
fnstsw ax
test ah, 1
je 0x57c6c9
fld qword [esp + 0xb0]
call fcn.0076a6b0
fld qword [esp + 0xc0]
mov di, ax
mov word [esp + 0x58], di
call fcn.0076a6b0
movsx edx, di
movsx ecx, ax
mov word [esp + 0x10], ax
lea eax, [ecx + edx]
cmp eax, esi
jle 0x57c6c9
mov edi, edx
sub edi, ecx
cmp edi, esi
jge 0x57c6c9
sub ecx, edx
cmp ecx, esi
jge 0x57c6c9
cmp eax, dword [0xa58618]
jg 0x57c6c9
mov al, byte [esp + 0xf]
test al, al
je 0x57c6c9
mov cx, word [esp + 0x10]
mov ax, word [esp + 0x58]
lea edx, [esp + 0x60]
mov word [esp + 0x62], cx
push edx
mov ecx, ebx
mov word [esp + 0x64], ax
call fcn.0057adb0
test al, al
jne 0x57c6c9
mov byte [esp + 0xf], al
mov al, byte [esp + 0x27]
xor edi, edi
test al, al
jne 0x57c7a8
mov al, byte [esp + 0xf]
test al, al
je 0x57c7a8
mov eax, dword [ebx + 0x308]
push edi
push eax
mov ecx, 0x81a800
call fcn.00558f60
test al, al
mov byte [esp + 0xf], al
je 0x57c7a8
push edi
push edi
sub esp, 0x10
xor eax, eax
mov edi, esp
xor ecx, ecx
mov edx, 0x200
push 1
mov dword [edi], eax
mov esi, edx
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 0x308]
push ecx
mov ecx, ebx
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
call fcn.0057e5f0
mov esi, dword [ebx + 0x308]
mov ecx, 0x81a800
mov byte [esp + 0xf], al
call fcn.005571f0
mov ecx, 0x81a800
call fcn.00557130
xor edi, edi
cmp eax, edi
je 0x57c7a8
mov edx, dword [0xa5861c]
cmp edx, edi
jne 0x57c761
or ecx, 0xffffffff
jmp 0x57c77e
movsx ecx, word [eax + 0x26]
imul ecx, dword [0x836b2c]
movsx edi, word [eax + 0x24]
add ecx, edi
lea ecx, [ecx + ecx*4]
shl ecx, 4
xor edi, edi
mov ecx, dword [ecx + edx + 0x38]
cmp ecx, esi
jne 0x57c79a
mov ecx, dword [eax + 0x38]
cmp ecx, edi
je 0x57c791
cmp ecx, 0xffff
jne 0x57c79a
mov edx, dword [0xa3a878]
mov dword [eax + 0x38], edx
mov ecx, 0x81a800
call fcn.00557130
cmp eax, edi
jne 0x57c752
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x10], 0
cmp eax, edi
jne 0x57c904
mov al, byte [esp + 0xf]
test al, al
je 0x57c904
cmp dword [ebx + 0x30c], 4
jne 0x57c904
mov al, byte [esp + 0x27]
test al, al
jne 0x57c992
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edi
fild qword [esp + 0x90]
fmul qword [0x790db8]
fcomp qword [0x790c98]
fnstsw ax
test ah, 1
je 0x57c90c
mov edx, dword [ebx + 0x308]
lea eax, [esp + 0x74]
push 1
lea ecx, [esp + 0xd4]
push eax
push ecx
mov esi, 0x200
push 0x3c23d70a
push edx
mov ecx, ebx
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], edi
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], esi
call fcn.0057ed60
test al, al
je 0x57c9c8
push edi
push edi
sub esp, 0x10
xor eax, eax
mov edi, esp
xor ecx, ecx
mov edx, esi
push 6
mov dword [edi], eax
mov eax, dword [ebx + 0x308]
push eax
mov dword [edi + 4], ecx
mov ecx, ebx
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
call fcn.0057e5f0
test al, al
mov byte [esp + 0xf], al
je 0x57c9c6
mov esi, dword [ebx + 0x308]
mov ecx, 0x81a800
call fcn.005571f0
mov ecx, 0x81a800
call fcn.00557130
test eax, eax
je 0x57c8fb
mov edi, dword [0xa5861c]
mov edx, dword [eax + 0x24]
test edi, edi
mov dword [esp + 0x28], edx
jne 0x57c8c7
or ecx, 0xffffffff
jmp 0x57c8e2
movsx ecx, word [esp + 0x2a]
imul ecx, dword [0x836b2c]
movsx edx, dx
add ecx, edx
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov ecx, dword [ecx + edi + 0x38]
cmp ecx, esi
je 0x57c8ed
add byte [eax + 0x11b], 4
mov ecx, 0x81a800
call fcn.00557130
test eax, eax
jne 0x57c8b1
mov byte [esp + 0x10], 1
xor edi, edi
jmp 0x57c90c
mov al, byte [esp + 0x27]
test al, al
jne 0x57c94a
mov al, byte [esp + 0xf]
test al, al
je 0x57c94a
cmp dword [esp + 0x4c], edi
jne 0x57c94e
mov al, byte [esp + 0x10]
test al, al
jne 0x57c992
push edi
push edi
xor eax, eax
xor ecx, ecx
sub esp, 0x10
mov edx, 0x200
mov edi, esp
mov esi, edx
push 2
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov edx, dword [ebx + 0x308]
push edx
mov dword [edi + 0xc], esi
jmp 0x57c985
cmp dword [esp + 0x4c], edi
jle 0x57c992
mov al, byte [esp + 0xf]
test al, al
je 0x57c9c8
mov edi, dword [ebx + 0x30c]
xor eax, eax
push edi
push 1
xor ecx, ecx
sub esp, 0x10
mov edi, esp
mov edx, 0x200
mov esi, edx
push 2
mov dword [edi], eax
mov eax, dword [ebx + 0x308]
push eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
mov ecx, ebx
call fcn.0057e5f0
mov byte [esp + 0xf], al
xor edi, edi
mov al, byte [esp + 0xf]
test al, al
je 0x57c9c8
mov al, byte [esp + 0x10]
test al, al
je 0x57c9a9
add dword [ebx + 0x30c], 4
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x304]
add eax, ecx
mov dword [ebx + 0x304], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor edi, edi
mov esi, dword [ebx + 0x308]
mov ecx, 0x81a800
call fcn.005571f0
mov ecx, 0x81a800
call fcn.00557130
cmp eax, edi
je 0x57ca3c
mov edx, dword [eax + 0x24]
mov dword [esp + 0x28], edx
movsx ecx, word [esp + 0x2a]
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], esi
jne 0x57ca2e
mov dword [ecx + 0x38], edi
mov byte [ecx + 0x4b], 0
mov dword [eax + 0x38], edi
mov byte [eax + 0x11a], 0
mov ecx, dword [ebx + 0x30c]
mov byte [eax + 0x11b], cl
mov ecx, 0x81a800
call fcn.00557130
cmp eax, edi
jne 0x57c9e6
cmp dword [esp + 0x4c], edi
jle 0x57cab7
mov esi, dword [ebx + 0x308]
mov ecx, 0x81a800
dec esi
call fcn.005571f0
mov ecx, 0x81a800
call fcn.00557130
cmp eax, edi
je 0x57cab7
mov edx, dword [eax + 0x24]
mov dword [esp + 0x28], edx
movsx ecx, word [esp + 0x2a]
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], esi
jne 0x57caa9
mov dword [ecx + 0x38], edi
mov byte [ecx + 0x4b], 0
mov dword [eax + 0x38], edi
mov byte [eax + 0x11a], 0
mov ecx, dword [ebx + 0x30c]
mov byte [eax + 0x11b], cl
mov ecx, 0x81a800
call fcn.00557130
cmp eax, edi
jne 0x57ca61
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10