Function at 0x565f30
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov ecx, dword [0x7fb2d0]
mov edx, dword [ecx + 0x34]
mov ecx, dword [0x816d04]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 0xffff
lea eax, [eax + eax*2]
shl eax, 2
mov ebx, dword [edx + eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
and eax, 0xffff
shl eax, 5
mov edx, dword [eax + ecx + 0x14]
push edi
push esi
mov dword [ebp - 8], edx
xor edi, edi
mov byte [ebp - 2], 0
mov byte [ebp - 3], 0
call fcn.004698a0
mov byte [ebp - 4], al
mov al, byte [0x6b75e8]
add esp, 4
test al, al
jne 0x565fd4
inc word [ebx + 0x20c]
mov eax, dword [0x68a808]
mov dl, byte [eax + 4]
test dl, dl
mov cx, word [ebx + 0x20c]
jne 0x565fbf
cmp cx, word [eax]
jle 0x565fbf
mov byte [eax + 4], 1
mov byte [ebp - 2], 1
mov word [ebx + 0x20c], di
jmp 0x565fd4
mov dx, word [eax + 2]
cmp dx, cx
jle 0x565fcd
movsx ecx, dx
jmp 0x565fd0
movsx ecx, cx
mov word [eax + 2], cx
mov eax, dword [ebx + 0x204]
test eax, 0x2000000
je 0x566041
lea edi, [ebx + 0x224]
mov eax, esi
call fcn.00574400
mov ecx, edi
mov edx, dword [ecx]
lea eax, [ebx + 0x230]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, dword [edi]
mov ecx, dword [edi + 4]
lea edx, [ebx + 0x254]
mov dword [edx], eax
mov eax, dword [edi + 8]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov edx, dword [0x631d08]
mov eax, dword [edx]
lea ecx, [ebx + 0x278]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov edx, dword [edx + 8]
mov dword [ebx + 0x208], 0
jmp 0x5660ad
test al, 1
jne 0x5660b0
lea eax, [ebx + 0x74]
mov edx, eax
mov esi, dword [edx]
lea ecx, [ebx + 0x254]
mov dword [ecx], esi
mov esi, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [ecx + 4], esi
mov dword [ecx + 8], edx
mov edx, eax
mov esi, dword [edx]
lea ecx, [ebx + 0x230]
mov dword [ecx], esi
mov esi, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [ecx + 4], esi
mov dword [ecx + 8], edx
mov edx, dword [eax]
lea ecx, [ebx + 0x224]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov edx, dword [0x631d04]
mov dword [ecx + 8], eax
mov eax, dword [edx]
lea ecx, [ebx + 0x278]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov edx, dword [edx + 8]
mov dword [ebx + 0x208], edi
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x17c]
test ch, 8
jne 0x566528
mov ecx, dword [ebx + 0x210]
test ecx, ecx
mov byte [ebp - 1], 0
jle 0x566136
mov eax, dword [ebx + 0x214]
mov esi, dword [ebx + 0x208]
or esi, eax
test ah, 8
mov dword [ebx + 0x208], esi
mov edi, esi
je 0x566119
mov eax, ecx
cdq
mov esi, 7
idiv esi
test edx, edx
jne 0x566101
or edi, 0x800
jmp 0x566107
and edi, 0xfffff7ff
mov dword [ebx + 0x208], edi
mov dword [ebx + 0x284], 0x3f800000
jmp 0x566123
mov dword [ebx + 0x284], 0
lea eax, [ecx - 1]
test eax, eax
mov dword [ebx + 0x210], eax
jne 0x566136
mov dword [ebx + 0x214], eax
test dword [ebx + 0x204], 0x8000000
jne 0x5662d2
mov eax, dword [ebx + 0x324]
or esi, 0xffffffff
cmp eax, esi
je 0x5661f1
test byte [ebx + 0x106], 4
jne 0x5661f1
mov edx, dword [0x7fb2d0]
and eax, 0xffff
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x34]
mov eax, dword [eax + ecx*4 + 8]
mov cx, word [eax + 0xb8]
mov word [ebx + 0xb8], cx
cmp dword [eax + 0x218], esi
mov byte [ebp - 1], 1
jne 0x5661a3
mov dl, byte [eax + 0x2a3]
cmp dl, 0x1b
je 0x5661f1
cmp dl, 0x1a
je 0x5661f1
mov edx, dword [eax + 0x208]
mov ecx, dword [ebx + 0x208]
and edx, 0x3f
or ecx, edx
mov dword [ebx + 0x208], ecx
lea ecx, [eax + 0x224]
mov edi, dword [ecx]
lea edx, [ebx + 0x224]
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
add eax, 0x278
mov ecx, dword [eax]
lea edx, [ebx + 0x278]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0x328]
cmp eax, esi
je 0x5662a8
test byte [ebx + 0x106], 4
jne 0x5662a8
mov edx, dword [0x7fb2d0]
and eax, 0xffff
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x34]
mov eax, dword [eax + ecx*4 + 8]
mov cl, byte [ebp - 1]
test cl, cl
jne 0x566236
mov cx, word [eax + 0xb8]
mov word [ebx + 0xb8], cx
cmp dword [eax + 0x218], esi
jne 0x56624e
mov cl, byte [eax + 0x2a3]
cmp cl, 0x1b
je 0x5662a8
cmp cl, 0x1a
je 0x5662a8
lea ecx, [eax + 0x230]
mov esi, ecx
mov edi, dword [esi]
lea edx, [ebx + 0x230]
mov dword [edx], edi
mov edi, dword [esi + 4]
mov dword [edx + 4], edi
mov esi, dword [esi + 8]
mov dword [edx + 8], esi
mov esi, dword [ecx]
lea edx, [ebx + 0x254]
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, dword [eax + 0x208]
mov ecx, dword [ebx + 0x208]
and edx, 0x7c00
or ecx, edx
mov dword [ebx + 0x208], ecx
mov eax, dword [eax + 0x284]
mov dword [ebx + 0x284], eax
mov eax, dword [ebx + 0x208]
xor esi, esi
test ah, 0x7c
je 0x5662be
mov byte [ebx + 0x322], 0
jmp 0x5662d4
mov al, byte [ebx + 0x322]
cmp al, 0x7f
jge 0x5662d4
inc al
mov byte [ebx + 0x322], al
jmp 0x5662d4
xor esi, esi
mov al, byte [0x6b75e8]
test al, al
jne 0x566528
test byte [ebx + 0x204], 0x10
je 0x56639b
cmp dword [0x68cc5c], esi
je 0x566369
mov ax, word [ebx + 0x422]
cmp ax, si
je 0x566369
cmp ax, 1
jne 0x566369
mov ecx, dword [0x7fb2d0]
mov edi, dword [ecx + 0x34]
mov edx, dword [ebp - 0x10]
mov eax, dword [edi + edx + 8]
mov cx, word [eax + 0x2f2]
mov eax, dword [ebp + 8]
call fcn.0056d530
cmp eax, 0xffffffff
je 0x566369
fld dword [0x612220]
and eax, 0xffff
lea ecx, [eax + eax*2]
mov edx, dword [edi + ecx*4 + 8]
mov eax, dword [edx]
mov ecx, dword [0x816d04]
and eax, 0xffff
shl eax, 5
mov ecx, dword [eax + ecx + 0x14]
fld dword [ecx + 0x4d0]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x566369
fld dword [ecx + 0x4d0]
jmp 0x56636f
fld dword [0x6129d8]
fadd dword [ebx + 0x37c]
fst dword [ebx + 0x37c]
fcomp dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x5663c0
mov dword [ebx + 0x37c], 0x3f800000
mov word [ebx + 0x422], si
jmp 0x5663c0
fld dword [ebx + 0x37c]
fsub dword [0x6129d8]
fst dword [ebx + 0x37c]
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jp 0x5663c0
mov dword [ebx + 0x37c], esi
mov al, byte [ebx + 0x204]
fld dword [ebx + 0x380]
test al, 0x20
je 0x5663f5
fadd dword [0x612560]
fst dword [ebx + 0x380]
fcomp dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x566414
mov dword [ebx + 0x380], 0x3f800000
jmp 0x566414
fsub dword [0x612560]
fst dword [ebx + 0x380]
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jp 0x566414
mov dword [ebx + 0x380], esi
xor eax, eax
mov ax, word [ebx + 0x428]
cmp ax, si
jle 0x566435
dec eax
cmp ax, si
mov word [ebx + 0x428], ax
jne 0x566435
mov dword [ebx + 0x424], esi
mov al, byte [ebx + 0x28c]
test al, al
jle 0x566464
dec al
mov byte [ebx + 0x28c], al
jne 0x566464
mov edx, dword [ebp + 8]
push 1
push edx
call fcn.00571a80
mov al, byte [0x6b75e8]
add esp, 8
test al, al
jne 0x566528
xor eax, eax
mov ax, word [ebx + 0x420]
cmp ax, si
jle 0x566528
test byte [ebx + 0x10], 0x20
je 0x566528
dec eax
cmp ax, si
mov word [ebx + 0x420], ax
jne 0x566528
fld dword [ebx + 0xe0]
mov ecx, dword [ebp + 8]
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x56651e
xor eax, eax
mov al, byte [ebx + 0x298]
shr al, 3
not al
push ecx
mov esi, 0xfffb
and word [ebx + 0x106], si
mov cl, 1
and eax, 1
or eax, 0x22
mov edi, eax
call fcn.0056d7b0
mov edx, dword [str.stand]
mov eax, dword [ebp + 8]
add esp, 4
push 1
push 0
push edx
call fcn.00568b60
mov eax, dword [ebp + 8]
add esp, 0xc
push edi
push eax
call fcn.00569910
and word [ebx + 0x298], si
add esp, 8
cmp word [ebx + 0xb4], 0
jne 0x56650f
mov eax, dword [ebp + 8]
call fcn.0055e6f0
mov esi, dword [ebp + 8]
push 5
call fcn.00564e20
add esp, 4
jmp 0x566528
push esi
push ecx
call fcn.0056bf90
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x17c]
test ah, 4
jne 0x566c4a
mov ax, word [ebx + 0x106]
test al, 4
jne 0x56674e
mov cl, byte [0x6b75e8]
test cl, cl
jne 0x56674e
test ah, 4
je 0x566569
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.00571a80
jmp 0x5665c4
mov cx, word [ebx + 0x2f4]
cmp cx, word [ebx + 0x2f2]
je 0x5665c7
lea ecx, [ebx + 0x298]
call fcn.005695e0
test al, al
jne 0x5665c7
mov edx, dword [0x7fb2d0]
mov eax, dword [edx + 0x34]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + ecx + 8]
mov cx, word [edx + 0x2f4]
mov eax, dword [ebp + 8]
call fcn.0056d530
cmp eax, 0xffffffff
je 0x5665c7
mov esi, dword [ebp + 8]
mov edi, eax
call fcn.005715c0
test al, al
je 0x5665c7
mov eax, esi
push 1
push eax
call fcn.005712a0
add esp, 8
mov al, byte [ebx + 0x31d]
cmp al, byte [ebx + 0x31c]
je 0x566609
lea ecx, [ebx + 0x298]
call fcn.005695e0
test al, al
jne 0x566609
movsx cx, byte [ebx + 0x31d]
mov edi, dword [ebp + 8]
push 0
mov eax, edi
call fcn.0056d560
add esp, 4
cmp ax, 0xffff
je 0x56660c
mov byte [ebx + 0x31c], al
jmp 0x56660c
mov edi, dword [ebp + 8]
mov al, byte [0x815ca2]
test al, al
je 0x566655
cmp dword [ebx + 0x218], 0xffffffff
je 0x566655
lea eax, [ebx + 0x31e]
mov esi, 2
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 1
movsx ecx, cl
jg 0x56663f
mov ecx, 1
mov byte [eax], cl
inc eax
dec esi
jne 0x566630
cmp byte [ebx + 0x31d], 0xff
jne 0x566655
mov byte [ebx + 0x31d], 0
mov al, byte [ebx + 0x321]
cmp al, byte [ebx + 0x320]
je 0x56674e
cmp al, 0xff
mov byte [ebx + 0x320], al
jne 0x56667b
mov dword [ebx + 0x348], 0
push edi
call fcn.00477ba0
add esp, 4
cmp eax, 0xffffffff
je 0x56674e
push edi
call fcn.00477ba0
mov ecx, dword [0x8154e0]
mov edx, dword [ecx + 0x34]
and eax, 0xffff
shl eax, 9
movsx eax, word [eax + edx + 2]
add esp, 4
cmp eax, 0xffffffff
je 0x56674e
mov eax, dword [0x7fb2d0]
mov esi, dword [eax + 0x34]
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + ecx + 8]
mov cx, word [edx + 0x2f2]
mov eax, edi
call fcn.0056d530
cmp eax, 0xffffffff
je 0x56674e
and eax, 0xffff
lea eax, [eax + eax*2]
mov ecx, dword [esi + eax*4 + 8]
mov edx, dword [ecx]
mov eax, dword [0x816d04]
and edx, 0xffff
shl edx, 5
mov ecx, dword [edx + eax + 0x14]
mov al, byte [ebx + 0x320]
cmp al, 0xff
jne 0x566709
mov edx, dword [ecx + 0x4bc]
jmp 0x56670f
mov edx, dword [ecx + 0x4ac]
cmp al, 0xff
mov dword [ebp - 0x18], 0x3f800000
je 0x56673d
mov cx, word [ecx + 0x3da]
cmp cx, 1
jle 0x56673d
movsx eax, al
movsx ecx, cx
mov dword [ebp - 0x18], eax
dec ecx
fild dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
fidiv dword [ebp - 0x18]
fstp dword [ebp - 0x18]
cmp edx, 0xffffffff
je 0x56674e
mov eax, dword [ebp - 0x18]
push eax
call fcn.00547610
add esp, 4
cmp byte [ebx + 0x288], 1
mov eax, dword [ebp - 8]
jne 0x566765
mov ecx, dword [eax + 0x26c]
mov dword [ebp - 0xc], ecx
jmp 0x56676c
mov dword [ebp - 0xc], 0x3f800000
fld dword [ebp - 0xc]
lea esi, [ebx + 0x23c]
fmul dword [eax + 0x264]
mov edx, esi
fmul dword [0x61222c]
fstp dword [ebp - 0x18]
fld dword [ebp - 0xc]
fmul dword [eax + 0x268]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
fmul dword [0x612664]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
fstp dword [ebp - 0x14]
fld dword [0x612220]
fld dword [ebp - 0x18]
fucompp
fnstsw ax
test ah, 0x44
jp 0x56681f
fld dword [0x612220]
fld dword [ebp - 0x14]
fucompp
fnstsw ax
test ah, 0x44
jp 0x56681f
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x230]
mov edx, dword [eax]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, edi
call fcn.00565ef0
test al, al
je 0x5667fe
push 1
push esi
call fcn.0056d360
add esp, 8
mov edx, dword [0x631d04]
mov eax, dword [edx]
lea ecx, [ebx + 0x248]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
jmp 0x5668c0
mov al, byte [ebx + 0x2b6]
test al, al
je 0x56689d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], 0x3f800000
call fcn.004fa420
lea ecx, [ebp - 0x44]
add esp, 4
push ecx
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x5c]
call fcn.004052c0
mov edi, dword [0x631ce8]
mov edx, edi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
push eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x18]
push ecx
mov dword [ebp - 0x30], edx
lea edx, [ebx + 0x2b8]
push edx
lea eax, [ebx + 0x248]
push eax
lea eax, [ebx + 0x23c]
lea ecx, [ebx + 0x230]
push eax
lea esi, [ebp - 0x60]
call fcn.00568460
add esp, 0x14
jmp 0x5668c6
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push ecx
push edx
lea eax, [ebx + 0x248]
push eax
lea edi, [ebx + 0x230]
lea esi, [ebx + 0x23c]
call fcn.004d2930
add esp, 0xc
mov edi, dword [0x631ce8]
fld dword [0x612220]
mov esi, dword [ebp - 8]
fld dword [esi + 0x264]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x56690d
lea ecx, [ebp - 0x24]
lea edx, [ebx + 0x23c]
call fcn.004d08f0
fld dword [esi + 0x264]
fmul dword [0x61222c]
fdivp st(1)
fcom dword [0x612220]
fnstsw ax
test ah, 5
jp 0x5669b8
fstp st(0)
fld dword [0x612220]
fmul dword [0x6122c0]
call fcn.005de054
fld dword [ebp - 0xc]
mov byte [ebx + 0x323], al
fmul dword [esi + 0x270]
fmul dword [0x61222c]
fstp dword [ebp - 0x14]
fld dword [ebp - 0xc]
fmul dword [esi + 0x274]
fmul dword [0x612664]
fstp dword [ebp - 0x18]
fld dword [0x612220]
fld dword [ebp - 0x14]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5669d6
fld dword [0x612220]
fld dword [ebp - 0x18]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5669d6
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x260]
lea ecx, [ebx + 0x254]
mov esi, dword [ecx]
mov edx, eax
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], esi
push 0
push eax
mov dword [edx + 8], ecx
call fcn.0056d360
mov eax, dword [0x631d04]
mov ecx, dword [eax]
lea edx, [ebx + 0x26c]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
add esp, 8
mov dword [edx + 8], eax
jmp 0x566a6f
fcom dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x566913
fstp st(0)
fld dword [0x612224]
jmp 0x566913
mov al, byte [ebx + 0x2b7]
test al, al
je 0x566a4c
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], 0x3f800000
call fcn.004fa420
lea edx, [ebp - 0x44]
add esp, 4
push edx
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x5c]
call fcn.004052c0
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
push eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x14]
push ecx
mov dword [ebp - 0x30], edx
lea edx, [ebx + 0x2c8]
push edx
lea eax, [ebx + 0x26c]
push eax
lea edx, [ebx + 0x260]
lea ecx, [ebx + 0x254]
push edx
lea esi, [ebp - 0x60]
call fcn.00568460
add esp, 0x14
jmp 0x566a6f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
lea edx, [ebx + 0x26c]
push edx
lea edi, [ebx + 0x254]
lea esi, [ebx + 0x260]
call fcn.004d2930
add esp, 0xc
mov al, byte [0x6b75e8]
test al, al
jne case.default.0x566a8f
mov eax, dword [ebx + 0x208]
movsx ecx, byte [ebx + 0x28d]
shr eax, 0xd
and al, 1
cmp ecx, 3
ja case.default.0x566a8f
jmp dword [ecx*4 + 0x5671d0]
test al, al
je case.default.0x566a8f
mov edi, dword [ebp + 8]
push 0
call fcn.00571c40
add esp, 4
jmp case.default.0x566a8f
cmp word [ebx + 0xd2], 2
jl case.default.0x566a8f
mov eax, dword [ebp + 8]
push eax
call fcn.00571e40
add esp, 4
jmp case.default.0x566a8f
cmp byte [ebx + 0x2a3], 0x21
je case.default.0x566a8f
test al, al
jne case.default.0x566a8f
mov byte [ebx + 0x28d], al
jmp case.default.0x566a8f
mov al, byte [ebx + 0x2a3]
inc word [ebx + 0x28e]
cmp al, 0x21
je case.default.0x566a8f
mov ecx, dword [ebp + 8]
push 1
push ecx
call fcn.00572000
add esp, 8
mov ax, word [ebx + 0x2f2]
cmp ax, 0xffff
je 0x566c4a
mov cl, byte [0x6b75e8]
test cl, cl
jne 0x566c4a
mov edx, dword [ebx + 0x284]
xor esi, esi
cmp ax, word [ebx + 0x2f4]
mov dword [ebp - 0x18], edx
jne 0x566c0e
mov eax, dword [ebx + 0x210]
test eax, eax
jle 0x566b45
mov eax, dword [ebx + 0x214]
test ah, 8
mov byte [ebp - 1], 1
jne 0x566b49
mov byte [ebp - 1], 0
mov al, byte [ebp - 4]
test al, al
je 0x566b5e
test byte [ebx + 0x208], 0x10
je 0x566b5e
mov esi, 1
mov eax, dword [ebx + 0x208]
test ah, 8
je 0x566b6c
or esi, 2
test ah, 0x10
je 0x566b74
or esi, 4
mov eax, dword [ebx]
mov ecx, dword [0x816d04]
and eax, 0xffff
shl eax, 5
mov edx, dword [eax + ecx + 0x14]
test dword [edx + 0x17c], 0x800000
je 0x566bc2
mov eax, dword [ebx + 0x340]
mov ecx, dword [0x7fb2d0]
mov edx, dword [ecx + 0x34]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + eax + 8]
mov cx, word [ecx + 0x2f2]
mov eax, dword [ebp + 8]
call fcn.0056d530
call fcn.004c5f70
add esp, 4
mov eax, dword [ebx + 0x208]
test ah, 4
je 0x566bd0
or esi, 8
lea ecx, [ebx + 0x298]
call fcn.005695e0
test al, al
je 0x566be9
mov al, byte [ebp - 1]
test al, al
jne 0x566be9
or esi, 0x10
cmp word [ebx + 0xb4], 0
jne 0x566c00
mov al, byte [ebx + 0x505]
test al, al
jle 0x566c00
or esi, 0x10
cmp byte [ebx + 0x320], 0xff
je 0x566c13
or esi, 0x40
jmp 0x566c13
mov esi, 0x20
mov edx, dword [0x7fb2d0]
mov eax, dword [edx + 0x34]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx + 8]
mov dx, word [ecx + 0x2f2]
or eax, 0xffffffff
cmp dx, 0xffff
je 0x566c3d
movsx edx, dx
mov eax, dword [ecx + edx*4 + 0x2f8]
mov ecx, dword [ebp - 0x18]
push ecx
push esi
call fcn.004c5de0
add esp, 8
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x17c]
test ah, 8
jne 0x566dd3
test byte [ebx + 0x298], 2
je 0x566ccd
mov eax, dword [ebp + 8]
call fcn.005723e0
fld dword [ebx + 0x370]
fmul dword [0x6123ec]
fld dword [ebx + 0x364]
fmul dword [0x6123f0]
faddp st(1)
fstp dword [ebx + 0x364]
fld dword [ebx + 0x374]
fmul dword [0x6123ec]
fld dword [ebx + 0x368]
fmul dword [0x6123f0]
faddp st(1)
fstp dword [ebx + 0x368]
fld dword [ebx + 0x378]
fmul dword [0x6123ec]
fld dword [ebx + 0x36c]
fmul dword [0x6123f0]
faddp st(1)
fstp dword [ebx + 0x36c]
mov eax, dword [edi + 0x2cc]
xor edx, edx
test eax, eax
jle 0x566dd3
xor ecx, ecx
nop
mov eax, dword [edi + 0x2d0]
mov esi, ecx
imul esi, esi, 0x44
add esi, eax
test dx, dx
jne 0x566d08
cmp dword [ebx + 0x324], 0xffffffff
jne 0x566d04
test byte [ebx + 0x204], 1
je 0x566d1f
mov al, 1
jmp 0x566d21
mov eax, dword [ebx + 0x328]
cmp eax, 0xffffffff
je 0x566d1f
cmp eax, dword [ebx + 0x324]
je 0x566d1f
mov al, 1
jmp 0x566d21
xor al, al
test byte [ebx + 0x106], 4
jne 0x566d76
test al, al
je 0x566d76
cmp dword [ebx + ecx*4 + 0x338], 0x3f800000
je 0x566dc1
fld dword [esi + 4]
fmul dword [0x612228]
fdivr dword [0x612224]
fadd dword [ebx + ecx*4 + 0x338]
fst dword [ebx + ecx*4 + 0x338]
fcomp dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x566dc1
mov dword [ebx + ecx*4 + 0x338], 0x3f800000
jmp 0x566dc1
fld dword [0x612220]
fld dword [ebx + ecx*4 + 0x338]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x566dc1
fld dword [esi + 8]
fmul dword [0x612228]
fdivr dword [0x612224]
fsubr dword [ebx + ecx*4 + 0x338]
fst dword [ebx + ecx*4 + 0x338]
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jp 0x566dc1
mov dword [ebx + ecx*4 + 0x338], 0
mov eax, dword [edi + 0x2cc]
inc edx
movsx ecx, dx
cmp ecx, eax
jl 0x566ce0
xor eax, eax
mov ax, word [ebx + 0x406]
xor edi, edi
cmp ax, di
jle 0x566e30
dec eax
cmp ax, di
mov word [ebx + 0x406], ax
jne 0x566e30
mov edx, dword [ebx + 0x408]
mov ecx, dword [ebx + 0x40c]
mov esi, dword [ebp + 8]
xor eax, eax
mov ax, word [ebx + 0x404]
push 1
push edi
push edx
push eax
push ecx
push esi
call fcn.0042be40
add esp, 0x18
mov word [ebx + 0x404], di
mov dword [ebx + 0x40c], 0xffffffff
mov dword [ebx + 0x408], edi
jmp 0x566e33
mov esi, dword [ebp + 8]
mov al, byte [0x6b75e8]
test al, al
jne 0x566e76
push esi
call fcn.00573840
mov al, byte [0x6b75e8]
add esp, 4
test al, al
jne 0x566e76
mov eax, esi
call fcn.00564fa0
mov al, byte [0x6b75e8]
test al, al
jne 0x566e76
mov al, byte [ebp - 2]
test al, al
jne 0x566e6e
cmp dword [ebx + 0x218], 0xffffffff
je 0x566e76
mov edi, dword [ebp + 8]
call fcn.00572820
mov al, byte [ebx + 0x28b]
test al, al
jbe 0x566ea4
mov cl, byte [0x6b75e8]
test cl, cl
jne 0x5671c4
dec al
mov byte [ebx + 0x28b], al
jne 0x566eb1
mov edx, dword [ebp + 8]
push edx
call fcn.005742e0
add esp, 4
mov al, byte [0x6b75e8]
test al, al
jne 0x5671c4
fld dword [ebx + 0x2e8]
fchs
fcom dword [0x61273c]
fnstsw ax
test ah, 5
jp 0x566ed0
fstp st(0)
fld dword [0x61273c]
jmp 0x566ee5
fcom dword [0x61230c]
fnstsw ax
test ah, 0x41
jne 0x566ee5
fstp st(0)
fld dword [0x61230c]
fadd dword [ebx + 0x2e8]
mov edi, 0x80000
fstp dword [ebx + 0x2e8]
mov eax, dword [ebx + 0x204]
test eax, 0x10000000
je 0x566f19
test edi, eax
mov cl, 1
je 0x566f0c
mov cl, byte [ebp - 3]
and eax, 0xefffffff
mov dword [ebx + 0x204], eax
jmp 0x566f1c
mov cl, byte [ebp - 3]
mov eax, dword [ebx + 0x204]
test eax, 0x20000000
je 0x566f3a
test edi, eax
je 0x566f2f
mov cl, 1
and eax, 0xdfffffff
mov dword [ebx + 0x204], eax
mov esi, dword [ebx + 0x208]
and esi, 0x10
jne 0x566f60
fld dword [ebx + 0x344]
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jnp 0x566f60
test cl, cl
je 0x567048
mov al, byte [ebp - 4]
test al, al
jne 0x566f9a
mov eax, dword [ebx + 0x204]
test eax, 0x4000000
je 0x566f7f
and eax, 0xfbffffff
mov dword [ebx + 0x204], eax
mov eax, dword [ebx + 0x204]
test edi, eax
je 0x567048
and eax, 0xfff7ffff
or eax, 0x10
jmp 0x567042
mov ecx, dword [ebp + 8]
call fcn.005694e0
test al, al
je 0x566ff7
test esi, esi
je 0x566fee
test dword [ebx + 0x204], 0x4000000
mov eax, dword [0x6e21a0]
mov eax, dword [eax + 0x180]
je 0x566fc6
mov ecx, dword [eax + 0x64]
jmp 0x566fc9
mov ecx, dword [eax + 0x54]
cmp ecx, 0xffffffff
je 0x566fe4
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call fcn.00451330
add esp, 0x18
xor dword [ebx + 0x204], 0x4000000
test byte [ebx + 0x208], 0x10
jne 0x567048
test dword [ebx + 0x204], edi
jne 0x567012
fld dword [ebx + 0x344]
fcomp dword [0x612218]
fnstsw ax
test ah, 0x41
jne 0x567048
cmp dword [ebx + 0x11c], 0xffffffff
jne 0x567048
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x194]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call fcn.00451330
mov eax, dword [ebx + 0x204]
add esp, 0x18
xor eax, edi
mov dword [ebx + 0x204], eax
mov eax, dword [ebx + 0x204]
test edi, eax
je 0x5670ca
mov edx, dword [ebp - 8]
test dword [edx + 0x17c], 0x1000000
jne 0x567073
fld dword [ebx + 0x344]
fsub dword [0x612684]
fstp dword [ebx + 0x344]
cmp dword [ebx + 0x11c], 0xffffffff
jne 0x567085
test byte [ebx + 0x106], 4
je 0x567090
and eax, 0xfff7ffff
mov dword [ebx + 0x204], eax
mov eax, dword [ebx + 0x340]
mov ecx, 0x3f800000
cmp eax, ecx
je 0x56712d
fld dword [ebx + 0x340]
fadd dword [0x6123d8]
fst dword [ebx + 0x340]
fcomp dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x56712d
mov dword [ebx + 0x340], ecx
jmp 0x56712d
fld dword [ebx + 0x344]
fcomp dword [0x612224]
fnstsw ax
test ah, 5
jp 0x5670ef
fld dword [ebx + 0x344]
fadd dword [0x612664]
fstp dword [ebx + 0x344]
fld dword [0x612220]
fld dword [ebx + 0x340]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x56712d
fld dword [ebx + 0x340]
fsub dword [0x6129d4]
fst dword [ebx + 0x340]
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jp 0x56712d
mov dword [ebx + 0x340], 0
mov ecx, dword [ebp + 8]
call fcn.005694e0
test al, al
je 0x5671c4
test dword [ebx + 0x204], 0x4000000
je 0x567186
mov eax, dword [ebx + 0x348]
mov ecx, 0x3f800000
cmp eax, ecx
je 0x5671c4
fld dword [ebx + 0x348]
fadd dword [0x612644]
fst dword [ebx + 0x348]
fcomp dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x5671c4
mov dword [ebx + 0x348], ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [0x612220]
fld dword [ebx + 0x348]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5671c4
fld dword [ebx + 0x348]
fsub dword [0x6129d4]
fst dword [ebx + 0x348]
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jp 0x5671c4
mov dword [ebx + 0x348], 0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret