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

Disassembly:
sub esp, 0x5c
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push ebx
push ebp
lea eax, [edx + eax*2]
push esi
lea esi, [edx + edx*2]
push edi
lea ecx, [eax + eax*4]
lea esi, [esi + esi*8]
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x74]
shl esi, 6
mov ebp, dword [ecx + eax*8 + 0x64]
lea eax, [ecx + eax*8 + 0x60]
add esi, edx
mov dword [esp + 0x30], eax
mov edx, dword [eax]
sub edx, ebp
xor ebp, ebp
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x4c]
shl esi, 2
inc edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x24], edx
mov edx, dword [eax + 8]
lea ebx, [esi + ecx + 0x58c]
mov esi, dword [eax + 0x40]
shl edx, 1
cmp edx, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x7c], ebp
jbe 0x5f742b
mov edi, dword [eax + 0x44]
mov dword [esp + 0x5c], esi
cmp edx, edi
jbe 0x5f7419
sub edi, esi
mov esi, edx
mov dword [esp + 0x60], edi
mov edi, dword [eax + 0x44]
sub esi, edi
mov dword [esp + 0x64], esi
jmp 0x5f7437
mov edi, edx
mov dword [esp + 0x64], 0
sub edi, esi
mov dword [esp + 0x60], edi
jmp 0x5f7437
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebp
mov esi, 0x240
xor edi, edi
sub esi, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x68], esi
lea edx, [edx + ecx + 0x208c]
mov dword [esp + 0x2c], edx
mov dword [edx], edi
mov edx, dword [eax + 0x18]
cmp edx, 2
jne 0x5f7cf7
mov edx, dword [eax + 0xc]
mov esi, dword [0x638818]
shl edx, 2
sub esi, edx
mov edx, dword [eax + 0x1c]
cmp edx, edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], ebx
je 0x5f74c6
mov edx, dword [ecx]
mov edi, dword [ecx + 0x10]
mov dword [esp + 0x2c], 8
mov dword [esp + 0x3c], 1
lea edx, [edx + edx*2]
mov dword [esp + 0x20], 0
add edx, edi
lea edi, [edx + edx*2]
shl edi, 3
sub edi, edx
lea edx, [edi + edi*2]
lea edi, [edx*4 + 0x634d90]
lea edx, [eax + 0xf0]
mov dword [esp + 0x18], edx
jmp 0x5f74fb
mov edi, dword [ecx]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 3
lea edi, [edi + edi*2]
mov dword [esp + 0x20], 1
add edi, edx
lea edx, [eax + 0x54]
imul edi, edi, 0x1e0
add edi, 0x635748
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x584]
test edx, edx
je 0x5f750c
add esi, 8
mov dword [esp + 0x34], esi
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x30]
shl ecx, 5
add ecx, esi
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x34]
shl edx, 5
add edx, esi
shl ecx, 5
mov dword [esp + 0x54], edx
add ecx, esi
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x5c]
add eax, 0x20
mov dword [esp + 0x58], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
mov eax, dword [eax]
mov edx, dword [esp + 0x40]
lea ecx, [eax*8 + 0x641e88]
mov eax, dword [edx]
cdq
sub eax, edx
mov dword [esp + 0x70], ecx
sar eax, 1
je 0x5f77e4
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
jmp 0x5f757f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
mov edx, ebp
dec ebp
test edx, edx
mov dword [esp + 0x10], ebp
jne 0x5f763f
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x5f75cc
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
cmp ebx, ebp
jne 0x5f75c8
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
mov edx, 1
lea edi, [eax + eax*2]
mov eax, dword [esp + 0x30]
add edi, ebx
mov dword [esp + 0x20], edx
imul edi, edi, 0x1e0
add edi, 0x6357b4
add eax, 0x78
test edx, edx
je 0x5f75fe
mov edx, dword [eax]
mov ecx, dword [esp + 0x24]
shl edx, cl
mov ecx, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x18], eax
mov ebx, dword [esp + ecx*4 + 0x50]
inc ecx
cmp ecx, 3
mov dword [esp + 0x1c], ecx
fld dword [ebx + edx*4]
fstp dword [esp + 0x7c]
jne 0x5f7618
mov dword [esp + 0x1c], 0
jmp 0x5f7618
mov edx, dword [eax]
mov ecx, dword [esp + 0x24]
shl edx, cl
mov ecx, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x18], eax
fld dword [ecx + edx*4]
fstp dword [esp + 0x7c]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [edi + 8]
sar eax, 1
dec eax
inc ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
add edi, 0xc
lea ebx, [eax + edx*4]
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 4]
mov bp, word [eax]
add eax, 2
test bp, bp
jge 0x5f768b
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
je 0x5f8459
mov edx, dword [esi + 8]
mov edx, dword [edx]
shr edx, cl
test dl, 1
je 0x5f7672
movsx ecx, bp
neg ecx
lea eax, [eax + ecx*2]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x78]
add eax, 2
dec ebp
mov dword [esp + 0x78], ebp
mov bp, word [eax - 2]
test bp, bp
jl 0x5f7651
movsx ecx, bp
mov eax, ecx
and ecx, 0xf
sar eax, 4
test eax, eax
mov ebp, ecx
je 0x5f7728
cmp eax, 0xf
jne 0x5f76c8
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
push ecx
push esi
call fcn.005f49f0
mov edx, dword [esp + 0x78]
add esp, 8
add eax, 0xf
mov ecx, dword [edx]
mov edx, dword [esp + 0x78]
sub edx, ecx
mov dword [esp + 0x78], edx
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
je 0x5f76f7
mov edx, dword [esi + 8]
fld dword [eax*4 + 0x638820]
mov edx, dword [edx]
shr edx, cl
fmul dword [esp + 0x7c]
test dl, 1
je 0x5f771b
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f772e
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov dl, byte [ecx]
lea ecx, [ecx + 4]
mov dword [esi + 8], ecx
fld dword [eax*4 + 0x638820]
fmul dword [esp + 0x7c]
test dl, 1
je 0x5f771b
fchs
mov eax, dword [esp + 0x78]
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f772e
mov dword [ebx], 0
mov eax, dword [esp + 0x3c]
shl eax, 2
add ebx, eax
mov dword [esp + 0x28], eax
test ebp, ebp
je 0x5f77c5
cmp ebp, 0xf
jne 0x5f776d
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
push edx
push esi
call fcn.005f49f0
mov ebp, eax
mov eax, dword [esp + 0x78]
add esp, 8
add ebp, 0xf
mov ecx, dword [eax]
mov eax, dword [esp + 0x78]
sub eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ecx, eax
je 0x5f7790
mov edx, dword [esi + 8]
fld dword [ebp*4 + 0x638820]
mov eax, dword [edx]
shr eax, cl
fmul dword [esp + 0x7c]
test al, 1
je 0x5f77b4
jmp 0x5f77b2
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
mov dword [esi + 8], eax
fld dword [ebp*4 + 0x638820]
fmul dword [esp + 0x7c]
test cl, 1
je 0x5f77b4
fchs
mov eax, dword [esp + 0x78]
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
jmp 0x5f77cb
mov dword [ebx], 0
mov ebp, dword [esp + 0x10]
add ebx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], ebx
dec eax
mov dword [esp + 0x44], eax
jne 0x5f7577
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
add eax, 4
add edx, 4
dec ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], ecx
jne 0x5f754b
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x50]
lea eax, [edx*8 + 0x641f88]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x4c], eax
je 0x5f7c77
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x5f7c77
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 4]
movsx ecx, word [eax]
add eax, 2
mov dword [esp + 0x70], ecx
test ecx, ecx
jge 0x5f78b1
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
je 0x5f7873
mov edx, dword [esi + 8]
mov edx, dword [edx]
shr edx, cl
test dl, 1
je 0x5f7895
mov ecx, dword [esp + 0x70]
neg ecx
lea eax, [eax + ecx*2]
jmp 0x5f7895
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov dl, byte [ecx]
lea ecx, [ecx + 4]
test dl, 1
mov dword [esi + 8], ecx
je 0x5f7899
mov ecx, dword [esp + 0x70]
neg ecx
lea eax, [eax + ecx*2]
jmp 0x5f7899
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
add eax, 2
dec ecx
mov dword [esp + 0x78], ecx
movsx ecx, word [eax - 2]
test ecx, ecx
mov dword [esp + 0x70], ecx
jl 0x5f7853
mov eax, ebp
dec ebp
test eax, eax
jne 0x5f796b
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x5f78fc
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x5f78fc
mov ecx, dword [esp + 0x74]
mov edx, 1
mov dword [esp + 0x20], edx
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
lea edi, [eax + eax*2]
mov eax, dword [esp + 0x30]
add edi, ebx
imul edi, edi, 0x1e0
add edi, 0x6357b4
add eax, 0x78
jmp 0x5f7900
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
test edx, edx
mov edx, dword [eax]
je 0x5f7936
shl edx, cl
mov ecx, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x18], eax
mov ebx, dword [esp + ecx*4 + 0x50]
inc ecx
cmp ecx, 3
mov dword [esp + 0x1c], ecx
fld dword [ebx + edx*4]
fstp dword [esp + 0x7c]
jne 0x5f794a
mov dword [esp + 0x1c], 0
jmp 0x5f794a
shl edx, cl
mov ecx, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x18], eax
fld dword [ecx + edx*4]
fstp dword [esp + 0x7c]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [edi + 8]
mov ebp, eax
mov eax, dword [esp + 0x38]
sar ebp, 1
dec ebp
inc ecx
mov dword [esp + 0x14], ecx
lea ebx, [eax + edx*4]
add edi, 0xc
test byte [esp + 0x70], 8
je 0x5f79e7
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ecx, eax
je 0x5f79ac
mov edx, dword [esi + 8]
mov eax, dword [edx]
shr eax, cl
test al, 1
je 0x5f799b
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f79ed
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
dec eax
mov dword [ebx], ecx
mov dword [esp + 0x78], eax
jmp 0x5f79ed
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x5f79d6
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f79ed
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
dec eax
mov dword [ebx], edx
mov dword [esp + 0x78], eax
jmp 0x5f79ed
mov dword [ebx], 0
mov eax, dword [esp + 0x3c]
mov cl, byte [esp + 0x70]
shl eax, 2
add ebx, eax
mov dword [esp + 0x28], eax
test cl, 4
je 0x5f7a8c
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ecx, eax
je 0x5f7a49
mov edx, dword [esi + 8]
mov eax, dword [edx]
shr eax, cl
test al, 1
je 0x5f7a34
mov eax, dword [esp + 0x78]
fld dword [esp + 0x7c]
dec eax
fchs
fstp dword [ebx]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
jmp 0x5f7a92
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
dec eax
mov dword [ebx], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
jmp 0x5f7a92
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x5f7a77
mov eax, dword [esp + 0x78]
fld dword [esp + 0x7c]
dec eax
fchs
fstp dword [ebx]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
jmp 0x5f7a92
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
dec eax
mov dword [ebx], edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
jmp 0x5f7a92
mov dword [ebx], 0
add ebx, eax
mov eax, ebp
dec ebp
test eax, eax
mov dword [esp + 0x10], ebp
jne 0x5f7b56
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x5f7ae3
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x5f7ae3
mov ecx, dword [esp + 0x74]
mov edx, 1
mov dword [esp + 0x20], edx
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
lea edi, [eax + eax*2]
mov eax, dword [esp + 0x30]
add edi, ebx
imul edi, edi, 0x1e0
add edi, 0x6357b4
add eax, 0x78
jmp 0x5f7ae7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
test edx, edx
mov edx, dword [eax]
je 0x5f7b1d
shl edx, cl
mov ecx, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x18], eax
mov ebx, dword [esp + ecx*4 + 0x50]
inc ecx
cmp ecx, 3
mov dword [esp + 0x1c], ecx
fld dword [ebx + edx*4]
fstp dword [esp + 0x7c]
jne 0x5f7b31
mov dword [esp + 0x1c], 0
jmp 0x5f7b31
shl edx, cl
mov ecx, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x18], eax
fld dword [ecx + edx*4]
fstp dword [esp + 0x7c]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [edi + 8]
mov ebp, eax
mov eax, dword [esp + 0x38]
sar ebp, 1
dec ebp
inc ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
lea ebx, [eax + edx*4]
add edi, 0xc
test byte [esp + 0x70], 2
je 0x5f7bd2
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ecx, eax
je 0x5f7b97
mov edx, dword [esi + 8]
mov eax, dword [edx]
shr eax, cl
test al, 1
je 0x5f7b86
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f7bd8
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
dec eax
mov dword [ebx], ecx
mov dword [esp + 0x78], eax
jmp 0x5f7bd8
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x5f7bc1
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f7bd8
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
dec eax
mov dword [ebx], edx
mov dword [esp + 0x78], eax
jmp 0x5f7bd8
mov dword [ebx], 0
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x70]
add ebx, ecx
test al, 1
je 0x5f7c5c
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ecx, eax
je 0x5f7c21
mov eax, dword [esi + 8]
mov edx, dword [eax]
shr edx, cl
test dl, 1
je 0x5f7c10
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f7c62
mov eax, dword [esp + 0x7c]
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f7c62
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x5f7c4b
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f7c62
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
dec eax
mov dword [ebx], ecx
mov dword [esp + 0x78], eax
jmp 0x5f7c62
mov dword [ebx], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
add ebx, ecx
dec eax
mov dword [esp + 0x4c], eax
jne 0x5f7832
mov edx, ebp
dec ebp
test edx, edx
jne 0x5f7cde
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x5f7cb4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x5f7cb4
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], 1
mov edi, dword [eax]
mov ecx, dword [eax + 0x10]
lea edi, [edi + edi*2]
add edi, ecx
imul edi, edi, 0x1e0
add edi, 0x6357b4
cmp dword [edi], 0
jl 0x5f83e5
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
mov ebp, eax
sar ebp, 1
dec ebp
inc ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 8]
add edi, 0xc
lea ebx, [edx + ecx*4]
mov eax, dword [esp + 0x3c]
mov dword [ebx], 0
shl eax, 2
add ebx, eax
mov dword [ebx], 0
add ebx, eax
jmp 0x5f7c77
mov edx, dword [eax + 0x48]
mov dword [esp + 0x20], 0x636828
cmp edx, edi
jne 0x5f7d0e
mov dword [esp + 0x20], 0x636880
lea edx, [eax + 0xf0]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
shl edx, 2
mov esi, edx
mov edx, dword [0x638818]
sub edx, esi
mov esi, dword [ecx + 0x584]
cmp esi, edi
mov dword [esp + 0x38], edx
je 0x5f7d3d
add edx, 8
mov dword [esp + 0x38], edx
mov edx, dword [ecx]
mov ecx, dword [ecx + 0x10]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x44], 3
lea edx, [edx + edx*2]
add ecx, edx
lea edx, [ecx + ecx*2]
shl edx, 3
sub edx, ecx
add eax, 0x20
mov dword [esp + 0x48], eax
lea ecx, [edx + edx*2]
lea edx, [ecx*4 + 0x634d90]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov edx, dword [eax]
mov ecx, dword [esp + 0x40]
lea eax, [edx*8 + 0x641e88]
mov dword [esp + 0x70], eax
mov eax, dword [ecx]
cdq
sub eax, edx
sar eax, 1
je 0x5f7fae
mov dword [esp + 0x4c], eax
mov edx, ebp
dec ebp
test edx, edx
mov dword [esp + 0x10], ebp
jne 0x5f7dea
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 4]
add ecx, 0xc
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
mov edi, dword [edx]
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax]
add eax, 4
add edi, ecx
mov ecx, dword [esp + 0x24]
shl edi, cl
mov ecx, dword [esp + 0x38]
add edx, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
fld dword [ecx + edi*4]
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 4]
mov di, word [eax]
add eax, 2
test di, di
jge 0x5f7e53
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
mov ebp, ecx
je 0x5f7e1f
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov ecx, ebp
shr edx, cl
test dl, 1
je 0x5f7e3e
movsx ecx, di
neg ecx
lea eax, [eax + ecx*2]
jmp 0x5f7e3e
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov dl, byte [ecx]
lea ecx, [ecx + 4]
test dl, 1
mov dword [esi + 8], ecx
je 0x5f7e3e
movsx edx, di
neg edx
lea eax, [eax + edx*2]
mov edi, dword [esp + 0x78]
add eax, 2
dec edi
mov dword [esp + 0x78], edi
mov di, word [eax - 2]
test di, di
jl 0x5f7dfc
movsx ecx, di
mov eax, ecx
and ecx, 0xf
sar eax, 4
test eax, eax
mov edi, ecx
je 0x5f7ef3
cmp eax, 0xf
jne 0x5f7e91
mov ebp, dword [esp + 0x70]
mov eax, dword [ebp]
push eax
push esi
call fcn.005f49f0
mov ecx, dword [ebp]
mov edx, dword [esp + 0x80]
add esp, 8
add eax, 0xf
sub edx, ecx
mov dword [esp + 0x78], edx
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
mov ebp, ecx
je 0x5f7ec2
mov edx, dword [esi + 8]
fld dword [eax*4 + 0x638820]
mov edx, dword [edx]
shr edx, cl
fmul dword [esp + 0x7c]
test dl, 1
je 0x5f7ee6
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f7ef9
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov dl, byte [ecx]
lea ecx, [ecx + 4]
mov dword [esi + 8], ecx
fld dword [eax*4 + 0x638820]
fmul dword [esp + 0x7c]
test dl, 1
je 0x5f7ee6
fchs
mov eax, dword [esp + 0x78]
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f7ef9
mov dword [ebx], 0
add ebx, 4
test edi, edi
je 0x5f7f92
cmp edi, 0xf
jne 0x5f7f2f
mov ebp, dword [esp + 0x70]
mov eax, dword [ebp]
push eax
push esi
call fcn.005f49f0
mov ecx, dword [ebp]
mov edi, eax
mov eax, dword [esp + 0x80]
add esp, 8
add edi, 0xf
sub eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ebp, eax
je 0x5f7f61
mov edx, dword [esi + 8]
mov ecx, ebp
fld dword [edi*4 + 0x638820]
mov eax, dword [edx]
shr eax, cl
fmul dword [esp + 0x7c]
test al, 1
je 0x5f7f85
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f7f98
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
mov dword [esi + 8], eax
fld dword [edi*4 + 0x638820]
fmul dword [esp + 0x7c]
test cl, 1
je 0x5f7f85
fchs
mov eax, dword [esp + 0x78]
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f7f98
mov dword [ebx], 0
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x10]
add ebx, 4
dec eax
mov dword [esp + 0x4c], eax
jne 0x5f7d9a
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add eax, 4
add edx, 4
dec ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
jne 0x5f7d78
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x50]
lea eax, [edx*8 + 0x641f88]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x4c], eax
je 0x5f8394
mov ecx, dword [esp + 0x3c]
add ecx, 4
mov dword [esp + 0x3c], ecx
mov edi, dword [esp + 0x78]
test edi, edi
jle 0x5f8398
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 4]
movsx edx, word [eax]
add eax, 2
mov dword [esp + 0x70], edx
test edx, edx
jge 0x5f8086
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
mov edi, ecx
je 0x5f804c
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov ecx, edi
shr edx, cl
test dl, 1
je 0x5f8068
mov ecx, dword [esp + 0x70]
neg ecx
lea eax, [eax + ecx*2]
jmp 0x5f8068
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
test byte [ecx], 1
lea ecx, [ecx + 4]
mov dword [esi + 8], ecx
je 0x5f806c
neg edx
lea eax, [eax + edx*2]
jmp 0x5f806c
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
add eax, 2
dec ecx
mov dword [esp + 0x78], ecx
movsx ecx, word [eax - 2]
test ecx, ecx
mov dword [esp + 0x70], ecx
mov edx, ecx
jl 0x5f8028
mov eax, ebp
dec ebp
test eax, eax
jne 0x5f80d3
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
add ecx, 0xc
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x20]
mov edi, dword [edx]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax]
add eax, 4
add edi, ecx
mov ecx, dword [esp + 0x24]
shl edi, cl
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
sar ebp, 1
dec ebp
add edx, 4
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x70]
fld dword [ecx + edi*4]
fstp dword [esp + 0x7c]
test dl, 8
je 0x5f8161
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov edi, eax
je 0x5f811f
mov eax, dword [esi + 8]
mov ecx, edi
mov eax, dword [eax]
shr eax, cl
test al, 1
je 0x5f810b
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f816a
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [ebx], ecx
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f816a
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x5f814d
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f816a
mov eax, dword [esp + 0x7c]
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f816a
mov dword [ebx], 0
add ebx, 4
test dl, 4
je 0x5f81f8
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov edi, eax
je 0x5f81b6
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov ecx, edi
shr eax, cl
test al, 1
je 0x5f81a2
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f8201
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [ebx], ecx
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f8201
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x5f81e4
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f8201
mov eax, dword [esp + 0x7c]
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f8201
mov dword [ebx], 0
add ebx, 4
mov ecx, ebp
dec ebp
test ecx, ecx
mov dword [esp + 0x10], ebp
jne 0x5f8256
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
add ecx, 0xc
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x20]
mov edi, dword [edx]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax]
add eax, 4
add edi, ecx
mov ecx, dword [esp + 0x24]
shl edi, cl
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
sar ebp, 1
dec ebp
add edx, 4
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x70]
fld dword [ecx + edi*4]
mov dword [esp + 0x10], ebp
fstp dword [esp + 0x7c]
test dl, 2
je 0x5f82e4
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov edi, eax
je 0x5f82a2
mov eax, dword [esi + 8]
mov ecx, edi
mov eax, dword [eax]
shr eax, cl
test al, 1
je 0x5f828e
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f82ed
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [ebx], ecx
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f82ed
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x5f82d0
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f82ed
mov eax, dword [esp + 0x7c]
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f82ed
mov dword [ebx], 0
add ebx, 4
test dl, 1
je 0x5f837c
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov edi, eax
je 0x5f833a
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov ecx, edi
shr edx, cl
test dl, 1
je 0x5f8326
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f8385
mov eax, dword [esp + 0x7c]
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f8385
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x5f8368
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f8385
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [ebx], ecx
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x5f8385
mov dword [ebx], 0
add ebx, 4
mov eax, dword [esp + 0x4c]
dec eax
mov dword [esp + 0x4c], eax
jne 0x5f8007
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
sub ecx, ebx
mov eax, 0x38e38e39
lea ecx, [ecx + edx + 0xe8c]
sar ecx, 2
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x2c]
mov dword [eax], edx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x5f83e9
mov dword [ebx], 0
add ebx, 4
mov dword [ebx], 0
add ebx, 4
dec eax
jne 0x5f83ce
jmp 0x5f83e9
mov edi, dword [esp + 0x78]
test edi, edi
je 0x5f8451
jle 0x5f8420
cmp edi, 0x20
jl 0x5f840a
mov ebx, edi
shr ebx, 5
push 0x20
push esi
call fcn.005f49f0
add esp, 8
sub edi, 0x20
dec ebx
jne 0x5f83f9
test edi, edi
je 0x5f8451
push edi
push esi
call fcn.005f49f0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp edi, 0xffffffe0
jg 0x5f8441
mov ebx, edi
neg ebx
shr ebx, 5
mov ecx, ebx
shl ecx, 5
add edi, ecx
push 0x20
push esi
call fcn.005f49c0
add esp, 8
dec ebx
jne 0x5f8433
test edi, edi
je 0x5f8451
neg edi
push edi
push esi
call fcn.005f49c0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov dl, byte [ecx]
lea ecx, [ecx + 4]
test dl, 1
mov dword [esi + 8], ecx
je 0x5f7676
movsx edx, bp
neg edx
lea eax, [eax + edx*2]
jmp 0x5f7676