Function at 0x55df70
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov ecx, dword [0x851c30]
mov edx, dword [ecx + 0x34]
mov ecx, dword [0x86cff4]
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.00466800
mov byte [ebp - 4], al
mov al, byte [0x70e04e]
add esp, 4
test al, al
jne 0x55e014
inc word [ebx + 0x20c]
mov eax, dword [0x6e8fb0]
mov dl, byte [eax + 4]
test dl, dl
mov cx, word [ebx + 0x20c]
jne 0x55dfff
cmp cx, word [eax]
jle 0x55dfff
mov byte [eax + 4], 1
mov byte [ebp - 2], 1
mov word [ebx + 0x20c], di
jmp 0x55e014
mov dx, word [eax + 2]
cmp dx, cx
jle 0x55e00d
movsx ecx, dx
jmp 0x55e010
movsx ecx, cx
mov word [eax + 2], cx
mov eax, dword [ebx + 0x204]
test eax, 0x2000000
je 0x55e081
lea edi, [ebx + 0x224]
mov eax, esi
call fcn.0056c210
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 [0x690508]
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 0x55e0ed
test al, 1
jne 0x55e0f0
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 [0x690504]
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 0x55e568
mov ecx, dword [ebx + 0x210]
test ecx, ecx
mov byte [ebp - 1], 0
jle 0x55e176
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 0x55e159
mov eax, ecx
cdq
mov esi, 7
idiv esi
test edx, edx
jne 0x55e141
or edi, 0x800
jmp 0x55e147
and edi, 0xfffff7ff
mov dword [ebx + 0x208], edi
mov dword [ebx + 0x284], 0x3f800000
jmp 0x55e163
mov dword [ebx + 0x284], 0
lea eax, [ecx - 1]
test eax, eax
mov dword [ebx + 0x210], eax
jne 0x55e176
mov dword [ebx + 0x214], eax
test dword [ebx + 0x204], 0x8000000
jne 0x55e312
mov eax, dword [ebx + 0x324]
or esi, 0xffffffff
cmp eax, esi
je 0x55e231
test byte [ebx + 0x106], 4
jne 0x55e231
mov edx, dword [0x851c30]
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 0x55e1e3
mov dl, byte [eax + 0x2a3]
cmp dl, 0x1b
je 0x55e231
cmp dl, 0x1a
je 0x55e231
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 0x55e2e8
test byte [ebx + 0x106], 4
jne 0x55e2e8
mov edx, dword [0x851c30]
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 0x55e276
mov cx, word [eax + 0xb8]
mov word [ebx + 0xb8], cx
cmp dword [eax + 0x218], esi
jne 0x55e28e
mov cl, byte [eax + 0x2a3]
cmp cl, 0x1b
je 0x55e2e8
cmp cl, 0x1a
je 0x55e2e8
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 0x55e2fe
mov byte [ebx + 0x322], 0
jmp 0x55e314
mov al, byte [ebx + 0x322]
cmp al, 0x7f
jge 0x55e314
inc al
mov byte [ebx + 0x322], al
jmp 0x55e314
xor esi, esi
mov al, byte [0x70e04e]
test al, al
jne 0x55e568
test byte [ebx + 0x204], 0x10
je 0x55e3db
cmp dword [0x6eb3c0], esi
je 0x55e3a9
mov ax, word [ebx + 0x422]
cmp ax, si
je 0x55e3a9
cmp ax, 1
jne 0x55e3a9
mov ecx, dword [0x851c30]
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.00565340
cmp eax, 0xffffffff
je 0x55e3a9
fld dword [0x66c40c]
and eax, 0xffff
lea ecx, [eax + eax*2]
mov edx, dword [edi + ecx*4 + 8]
mov eax, dword [edx]
mov ecx, dword [0x86cff4]
and eax, 0xffff
shl eax, 5
mov ecx, dword [eax + ecx + 0x14]
fld dword [ecx + 0x4d0]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x55e3a9
fld dword [ecx + 0x4d0]
jmp 0x55e3af
fld dword [0x66cbb8]
fadd dword [ebx + 0x37c]
fst dword [ebx + 0x37c]
fcomp dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x55e400
mov dword [ebx + 0x37c], 0x3f800000
mov word [ebx + 0x422], si
jmp 0x55e400
fld dword [ebx + 0x37c]
fsub dword [0x66cbb8]
fst dword [ebx + 0x37c]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x55e400
mov dword [ebx + 0x37c], esi
mov al, byte [ebx + 0x204]
fld dword [ebx + 0x380]
test al, 0x20
je 0x55e435
fadd dword [0x66c748]
fst dword [ebx + 0x380]
fcomp dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x55e454
mov dword [ebx + 0x380], 0x3f800000
jmp 0x55e454
fsub dword [0x66c748]
fst dword [ebx + 0x380]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x55e454
mov dword [ebx + 0x380], esi
xor eax, eax
mov ax, word [ebx + 0x428]
cmp ax, si
jle 0x55e475
dec eax
cmp ax, si
mov word [ebx + 0x428], ax
jne 0x55e475
mov dword [ebx + 0x424], esi
mov al, byte [ebx + 0x28c]
test al, al
jle 0x55e4a4
dec al
mov byte [ebx + 0x28c], al
jne 0x55e4a4
mov edx, dword [ebp + 8]
push 1
push edx
call fcn.00569890
mov al, byte [0x70e04e]
add esp, 8
test al, al
jne 0x55e568
xor eax, eax
mov ax, word [ebx + 0x420]
cmp ax, si
jle 0x55e568
test byte [ebx + 0x10], 0x20
je 0x55e568
dec eax
cmp ax, si
mov word [ebx + 0x420], ax
jne 0x55e568
fld dword [ebx + 0xe0]
mov ecx, dword [ebp + 8]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x55e55e
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.005655c0
mov edx, dword [str.stand]
mov eax, dword [ebp + 8]
add esp, 4
push 1
push 0
push edx
call fcn.00560ba0
mov eax, dword [ebp + 8]
add esp, 0xc
push edi
push eax
call fcn.00561950
and word [ebx + 0x298], si
add esp, 8
cmp word [ebx + 0xb4], 0
jne 0x55e54f
mov eax, dword [ebp + 8]
call fcn.00556750
mov esi, dword [ebp + 8]
push 5
call fcn.0055ce60
add esp, 4
jmp 0x55e568
push esi
push ecx
call fcn.00563fe0
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x17c]
test ah, 4
jne 0x55ec8a
mov ax, word [ebx + 0x106]
test al, 4
jne 0x55e78e
mov cl, byte [0x70e04e]
test cl, cl
jne 0x55e78e
test ah, 4
je 0x55e5a9
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.00569890
jmp 0x55e604
mov cx, word [ebx + 0x2f4]
cmp cx, word [ebx + 0x2f2]
je 0x55e607
lea ecx, [ebx + 0x298]
call fcn.00561620
test al, al
jne 0x55e607
mov edx, dword [0x851c30]
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.00565340
cmp eax, 0xffffffff
je 0x55e607
mov esi, dword [ebp + 8]
mov edi, eax
call fcn.005693d0
test al, al
je 0x55e607
mov eax, esi
push 1
push eax
call fcn.005690b0
add esp, 8
mov al, byte [ebx + 0x31d]
cmp al, byte [ebx + 0x31c]
je 0x55e649
lea ecx, [ebx + 0x298]
call fcn.00561620
test al, al
jne 0x55e649
movsx cx, byte [ebx + 0x31d]
mov edi, dword [ebp + 8]
push 0
mov eax, edi
call fcn.00565370
add esp, 4
cmp ax, 0xffff
je 0x55e64c
mov byte [ebx + 0x31c], al
jmp 0x55e64c
mov edi, dword [ebp + 8]
mov al, byte [0x86bfa2]
test al, al
je 0x55e695
cmp dword [ebx + 0x218], 0xffffffff
je 0x55e695
lea eax, [ebx + 0x31e]
mov esi, 2
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 1
movsx ecx, cl
jg 0x55e67f
mov ecx, 1
mov byte [eax], cl
inc eax
dec esi
jne 0x55e670
cmp byte [ebx + 0x31d], 0xff
jne 0x55e695
mov byte [ebx + 0x31d], 0
mov al, byte [ebx + 0x321]
cmp al, byte [ebx + 0x320]
je 0x55e78e
cmp al, 0xff
mov byte [ebx + 0x320], al
jne 0x55e6bb
mov dword [ebx + 0x348], 0
push edi
call fcn.00473b20
add esp, 4
cmp eax, 0xffffffff
je 0x55e78e
push edi
call fcn.00473b20
mov ecx, dword [0x86b840]
mov edx, dword [ecx + 0x34]
and eax, 0xffff
shl eax, 9
movsx eax, word [eax + edx + 2]
add esp, 4
cmp eax, 0xffffffff
je 0x55e78e
mov eax, dword [0x851c30]
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.00565340
cmp eax, 0xffffffff
je 0x55e78e
and eax, 0xffff
lea eax, [eax + eax*2]
mov ecx, dword [esi + eax*4 + 8]
mov edx, dword [ecx]
mov eax, dword [0x86cff4]
and edx, 0xffff
shl edx, 5
mov ecx, dword [edx + eax + 0x14]
mov al, byte [ebx + 0x320]
cmp al, 0xff
jne 0x55e749
mov edx, dword [ecx + 0x4bc]
jmp 0x55e74f
mov edx, dword [ecx + 0x4ac]
cmp al, 0xff
mov dword [ebp - 0x18], 0x3f800000
je 0x55e77d
mov cx, word [ecx + 0x3da]
cmp cx, 1
jle 0x55e77d
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 0x55e78e
mov eax, dword [ebp - 0x18]
push eax
call fcn.0053f7c0
add esp, 4
cmp byte [ebx + 0x288], 1
mov eax, dword [ebp - 8]
jne 0x55e7a5
mov ecx, dword [eax + 0x26c]
mov dword [ebp - 0xc], ecx
jmp 0x55e7ac
mov dword [ebp - 0xc], 0x3f800000
fld dword [ebp - 0xc]
lea esi, [ebx + 0x23c]
fmul dword [eax + 0x264]
mov edx, esi
fmul dword [0x66c418]
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 [0x66c84c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
fstp dword [ebp - 0x14]
fld dword [0x66c40c]
fld dword [ebp - 0x18]
fucompp
fnstsw ax
test ah, 0x44
jp 0x55e85f
fld dword [0x66c40c]
fld dword [ebp - 0x14]
fucompp
fnstsw ax
test ah, 0x44
jp 0x55e85f
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.0055df30
test al, al
je 0x55e83e
push 1
push esi
call fcn.00565170
add esp, 8
mov edx, dword [0x690504]
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 0x55e900
mov al, byte [ebx + 0x2b6]
test al, al
je 0x55e8dd
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], 0x3f800000
call fcn.004f2550
lea ecx, [ebp - 0x44]
add esp, 4
push ecx
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x5c]
call fcn.004052d0
mov edi, dword [0x6904e8]
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.005604a0
add esp, 0x14
jmp 0x55e906
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.004cd870
add esp, 0xc
mov edi, dword [0x6904e8]
fld dword [0x66c40c]
mov esi, dword [ebp - 8]
fld dword [esi + 0x264]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x55e94d
lea ecx, [ebp - 0x24]
lea edx, [ebx + 0x23c]
call fcn.004cb830
fld dword [esi + 0x264]
fmul dword [0x66c418]
fdivp st(1)
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x55e9f8
fstp st(0)
fld dword [0x66c40c]
fmul dword [0x66c4a8]
call fcn.006343a4
fld dword [ebp - 0xc]
mov byte [ebx + 0x323], al
fmul dword [esi + 0x270]
fmul dword [0x66c418]
fstp dword [ebp - 0x14]
fld dword [ebp - 0xc]
fmul dword [esi + 0x274]
fmul dword [0x66c84c]
fstp dword [ebp - 0x18]
fld dword [0x66c40c]
fld dword [ebp - 0x14]
fucompp
fnstsw ax
test ah, 0x44
jp 0x55ea16
fld dword [0x66c40c]
fld dword [ebp - 0x18]
fucompp
fnstsw ax
test ah, 0x44
jp 0x55ea16
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.00565170
mov eax, dword [0x690504]
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 0x55eaaf
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x55e953
fstp st(0)
fld dword [0x66c410]
jmp 0x55e953
mov al, byte [ebx + 0x2b7]
test al, al
je 0x55ea8c
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], 0x3f800000
call fcn.004f2550
lea edx, [ebp - 0x44]
add esp, 4
push edx
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x5c]
call fcn.004052d0
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.005604a0
add esp, 0x14
jmp 0x55eaaf
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.004cd870
add esp, 0xc
mov al, byte [0x70e04e]
test al, al
jne case.default.0x55eacf
mov eax, dword [ebx + 0x208]
movsx ecx, byte [ebx + 0x28d]
shr eax, 0xd
and al, 1
cmp ecx, 3
ja case.default.0x55eacf
jmp dword [ecx*4 + 0x55f210]
test al, al
je case.default.0x55eacf
mov edi, dword [ebp + 8]
push 0
call fcn.00569a50
add esp, 4
jmp case.default.0x55eacf
cmp word [ebx + 0xd2], 2
jl case.default.0x55eacf
mov eax, dword [ebp + 8]
push eax
call fcn.00569c50
add esp, 4
jmp case.default.0x55eacf
cmp byte [ebx + 0x2a3], 0x21
je case.default.0x55eacf
test al, al
jne case.default.0x55eacf
mov byte [ebx + 0x28d], al
jmp case.default.0x55eacf
mov al, byte [ebx + 0x2a3]
inc word [ebx + 0x28e]
cmp al, 0x21
je case.default.0x55eacf
mov ecx, dword [ebp + 8]
push 1
push ecx
call fcn.00569e10
add esp, 8
mov ax, word [ebx + 0x2f2]
cmp ax, 0xffff
je 0x55ec8a
mov cl, byte [0x70e04e]
test cl, cl
jne 0x55ec8a
mov edx, dword [ebx + 0x284]
xor esi, esi
cmp ax, word [ebx + 0x2f4]
mov dword [ebp - 0x18], edx
jne 0x55ec4e
mov eax, dword [ebx + 0x210]
test eax, eax
jle 0x55eb85
mov eax, dword [ebx + 0x214]
test ah, 8
mov byte [ebp - 1], 1
jne 0x55eb89
mov byte [ebp - 1], 0
mov al, byte [ebp - 4]
test al, al
je 0x55eb9e
test byte [ebx + 0x208], 0x10
je 0x55eb9e
mov esi, 1
mov eax, dword [ebx + 0x208]
test ah, 8
je 0x55ebac
or esi, 2
test ah, 0x10
je 0x55ebb4
or esi, 4
mov eax, dword [ebx]
mov ecx, dword [0x86cff4]
and eax, 0xffff
shl eax, 5
mov edx, dword [eax + ecx + 0x14]
test dword [edx + 0x17c], 0x800000
je 0x55ec02
mov eax, dword [ebx + 0x340]
mov ecx, dword [0x851c30]
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.00565340
call fcn.004c1300
add esp, 4
mov eax, dword [ebx + 0x208]
test ah, 4
je 0x55ec10
or esi, 8
lea ecx, [ebx + 0x298]
call fcn.00561620
test al, al
je 0x55ec29
mov al, byte [ebp - 1]
test al, al
jne 0x55ec29
or esi, 0x10
cmp word [ebx + 0xb4], 0
jne 0x55ec40
mov al, byte [ebx + 0x505]
test al, al
jle 0x55ec40
or esi, 0x10
cmp byte [ebx + 0x320], 0xff
je 0x55ec53
or esi, 0x40
jmp 0x55ec53
mov esi, 0x20
mov edx, dword [0x851c30]
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 0x55ec7d
movsx edx, dx
mov eax, dword [ecx + edx*4 + 0x2f8]
mov ecx, dword [ebp - 0x18]
push ecx
push esi
call fcn.004c1170
add esp, 8
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x17c]
test ah, 8
jne 0x55ee13
test byte [ebx + 0x298], 2
je 0x55ed0d
mov eax, dword [ebp + 8]
call fcn.0056a1f0
fld dword [ebx + 0x370]
fmul dword [0x66c5d4]
fld dword [ebx + 0x364]
fmul dword [0x66c5d8]
faddp st(1)
fstp dword [ebx + 0x364]
fld dword [ebx + 0x374]
fmul dword [0x66c5d4]
fld dword [ebx + 0x368]
fmul dword [0x66c5d8]
faddp st(1)
fstp dword [ebx + 0x368]
fld dword [ebx + 0x378]
fmul dword [0x66c5d4]
fld dword [ebx + 0x36c]
fmul dword [0x66c5d8]
faddp st(1)
fstp dword [ebx + 0x36c]
mov eax, dword [edi + 0x2cc]
xor edx, edx
test eax, eax
jle 0x55ee13
xor ecx, ecx
nop
mov eax, dword [edi + 0x2d0]
mov esi, ecx
imul esi, esi, 0x44
add esi, eax
test dx, dx
jne 0x55ed48
cmp dword [ebx + 0x324], 0xffffffff
jne 0x55ed44
test byte [ebx + 0x204], 1
je 0x55ed5f
mov al, 1
jmp 0x55ed61
mov eax, dword [ebx + 0x328]
cmp eax, 0xffffffff
je 0x55ed5f
cmp eax, dword [ebx + 0x324]
je 0x55ed5f
mov al, 1
jmp 0x55ed61
xor al, al
test byte [ebx + 0x106], 4
jne 0x55edb6
test al, al
je 0x55edb6
cmp dword [ebx + ecx*4 + 0x338], 0x3f800000
je 0x55ee01
fld dword [esi + 4]
fmul dword [0x66c414]
fdivr dword [0x66c410]
fadd dword [ebx + ecx*4 + 0x338]
fst dword [ebx + ecx*4 + 0x338]
fcomp dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x55ee01
mov dword [ebx + ecx*4 + 0x338], 0x3f800000
jmp 0x55ee01
fld dword [0x66c40c]
fld dword [ebx + ecx*4 + 0x338]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x55ee01
fld dword [esi + 8]
fmul dword [0x66c414]
fdivr dword [0x66c410]
fsubr dword [ebx + ecx*4 + 0x338]
fst dword [ebx + ecx*4 + 0x338]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x55ee01
mov dword [ebx + ecx*4 + 0x338], 0
mov eax, dword [edi + 0x2cc]
inc edx
movsx ecx, dx
cmp ecx, eax
jl 0x55ed20
xor eax, eax
mov ax, word [ebx + 0x406]
xor edi, edi
cmp ax, di
jle 0x55ee70
dec eax
cmp ax, di
mov word [ebx + 0x406], ax
jne 0x55ee70
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.0042be50
add esp, 0x18
mov word [ebx + 0x404], di
mov dword [ebx + 0x40c], 0xffffffff
mov dword [ebx + 0x408], edi
jmp 0x55ee73
mov esi, dword [ebp + 8]
mov al, byte [0x70e04e]
test al, al
jne 0x55eeb6
push esi
call fcn.0056b650
mov al, byte [0x70e04e]
add esp, 4
test al, al
jne 0x55eeb6
mov eax, esi
call fcn.0055cfe0
mov al, byte [0x70e04e]
test al, al
jne 0x55eeb6
mov al, byte [ebp - 2]
test al, al
jne 0x55eeae
cmp dword [ebx + 0x218], 0xffffffff
je 0x55eeb6
mov edi, dword [ebp + 8]
call fcn.0056a630
mov al, byte [ebx + 0x28b]
test al, al
jbe 0x55eee4
mov cl, byte [0x70e04e]
test cl, cl
jne 0x55f204
dec al
mov byte [ebx + 0x28b], al
jne 0x55eef1
mov edx, dword [ebp + 8]
push edx
call fcn.0056c0f0
add esp, 4
mov al, byte [0x70e04e]
test al, al
jne 0x55f204
fld dword [ebx + 0x2e8]
fchs
fcom dword [0x66c924]
fnstsw ax
test ah, 5
jp 0x55ef10
fstp st(0)
fld dword [0x66c924]
jmp 0x55ef25
fcom dword [0x66c4f4]
fnstsw ax
test ah, 0x41
jne 0x55ef25
fstp st(0)
fld dword [0x66c4f4]
fadd dword [ebx + 0x2e8]
mov edi, 0x80000
fstp dword [ebx + 0x2e8]
mov eax, dword [ebx + 0x204]
test eax, 0x10000000
je 0x55ef59
test edi, eax
mov cl, 1
je 0x55ef4c
mov cl, byte [ebp - 3]
and eax, 0xefffffff
mov dword [ebx + 0x204], eax
jmp 0x55ef5c
mov cl, byte [ebp - 3]
mov eax, dword [ebx + 0x204]
test eax, 0x20000000
je 0x55ef7a
test edi, eax
je 0x55ef6f
mov cl, 1
and eax, 0xdfffffff
mov dword [ebx + 0x204], eax
mov esi, dword [ebx + 0x208]
and esi, 0x10
jne 0x55efa0
fld dword [ebx + 0x344]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jnp 0x55efa0
test cl, cl
je 0x55f088
mov al, byte [ebp - 4]
test al, al
jne 0x55efda
mov eax, dword [ebx + 0x204]
test eax, 0x4000000
je 0x55efbf
and eax, 0xfbffffff
mov dword [ebx + 0x204], eax
mov eax, dword [ebx + 0x204]
test edi, eax
je 0x55f088
and eax, 0xfff7ffff
or eax, 0x10
jmp 0x55f082
mov ecx, dword [ebp + 8]
call fcn.00561520
test al, al
je 0x55f037
test esi, esi
je 0x55f02e
test dword [ebx + 0x204], 0x4000000
mov eax, dword [0x738ba0]
mov eax, dword [eax + 0x180]
je 0x55f006
mov ecx, dword [eax + 0x64]
jmp 0x55f009
mov ecx, dword [eax + 0x54]
cmp ecx, 0xffffffff
je 0x55f024
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call fcn.00450820
add esp, 0x18
xor dword [ebx + 0x204], 0x4000000
test byte [ebx + 0x208], 0x10
jne 0x55f088
test dword [ebx + 0x204], edi
jne 0x55f052
fld dword [ebx + 0x344]
fcomp dword [0x66c404]
fnstsw ax
test ah, 0x41
jne 0x55f088
cmp dword [ebx + 0x11c], 0xffffffff
jne 0x55f088
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.00450820
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 0x55f10a
mov edx, dword [ebp - 8]
test dword [edx + 0x17c], 0x1000000
jne 0x55f0b3
fld dword [ebx + 0x344]
fsub dword [0x66c86c]
fstp dword [ebx + 0x344]
cmp dword [ebx + 0x11c], 0xffffffff
jne 0x55f0c5
test byte [ebx + 0x106], 4
je 0x55f0d0
and eax, 0xfff7ffff
mov dword [ebx + 0x204], eax
mov eax, dword [ebx + 0x340]
mov ecx, 0x3f800000
cmp eax, ecx
je 0x55f16d
fld dword [ebx + 0x340]
fadd dword [0x66c5c0]
fst dword [ebx + 0x340]
fcomp dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x55f16d
mov dword [ebx + 0x340], ecx
jmp 0x55f16d
fld dword [ebx + 0x344]
fcomp dword [0x66c410]
fnstsw ax
test ah, 5
jp 0x55f12f
fld dword [ebx + 0x344]
fadd dword [0x66c84c]
fstp dword [ebx + 0x344]
fld dword [0x66c40c]
fld dword [ebx + 0x340]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x55f16d
fld dword [ebx + 0x340]
fsub dword [0x66cbb4]
fst dword [ebx + 0x340]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x55f16d
mov dword [ebx + 0x340], 0
mov ecx, dword [ebp + 8]
call fcn.00561520
test al, al
je 0x55f204
test dword [ebx + 0x204], 0x4000000
je 0x55f1c6
mov eax, dword [ebx + 0x348]
mov ecx, 0x3f800000
cmp eax, ecx
je 0x55f204
fld dword [ebx + 0x348]
fadd dword [0x66c82c]
fst dword [ebx + 0x348]
fcomp dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x55f204
mov dword [ebx + 0x348], ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [0x66c40c]
fld dword [ebx + 0x348]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x55f204
fld dword [ebx + 0x348]
fsub dword [0x66cbb4]
fst dword [ebx + 0x348]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x55f204
mov dword [ebx + 0x348], 0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret